Skip to content

Commit

Permalink
2 tiny bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Dec 23, 2016
1 parent 99c843e commit 5cfc530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/com/mtbs3d/minecrift/provider/MCOpenVR.java
Original file line number Diff line number Diff line change
Expand Up @@ -1864,9 +1864,7 @@ private static void processControllerButtonsOculus(boolean sleeping, boolean gui
boolean pressedStickLeft = controllerStateReference[LEFT_CONTROLLER].rAxis[k_EAxis_TouchPad].x < -0.5 ;
boolean pressedStickDown = controllerStateReference[LEFT_CONTROLLER].rAxis[k_EAxis_TouchPad].y < -0.5 ;
boolean pressedStickUp = controllerStateReference[LEFT_CONTROLLER].rAxis[k_EAxis_TouchPad].y > 0.5 ;




rtbX = controllerStateReference[LEFT_CONTROLLER].rAxis[k_EAxis_TouchPad].x;
rtbY = controllerStateReference[LEFT_CONTROLLER].rAxis[k_EAxis_TouchPad].y;

Expand Down Expand Up @@ -1987,7 +1985,7 @@ private static void processControllerButtonsOculus(boolean sleeping, boolean gui
mc.vrSettings.buttonMappings[ViveButtons.OCULUS_LEFT_STICK_TOUCH.ordinal()].unpress();
}

if(pressedY && !pressedY) { //handle menu directly
if(pressedY && !lastpressedY) { //handle menu directly

if(pressedLHandTrigger){
setKeyboardOverlayShowing(!keyboardShowing, null);
Expand Down
2 changes: 1 addition & 1 deletion src/com/mtbs3d/minecrift/provider/OpenVRPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ else if (item instanceof ItemTool ||
){
tool = true;
}
else if(Reflector.forgeExists()){
else if(item !=null && Reflector.forgeExists()){
String c = item.getClass().getSuperclass().getName().toLowerCase();
//System.out.println(c);
if (c.contains("weapon") || c.contains("sword")) {
Expand Down

0 comments on commit 5cfc530

Please sign in to comment.