Skip to content

Commit c3e8cb6

Browse files
committed
39pre
1 parent 0d25d97 commit c3e8cb6

File tree

6 files changed

+882
-883
lines changed

6 files changed

+882
-883
lines changed

patches/net/minecraft/client/Minecraft.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@
12461246
+ * The minecriftVerString will be automatically updated by the build scripts, do not modify here.
12471247
+ * Modify minecriftversion.py in root minecrift dir.
12481248
+ */
1249-
+ public final String minecriftVerString = "Vivecraft 1.7.10 jrbudda-38r2";
1249+
+ public final String minecriftVerString = "Vivecraft 1.7.10 jrbudda-39pre";
12501250
+ private boolean trigger;
12511251
+ /* end version */
12521252
+ /** END MINECRIFT */

patches/net/minecraft/client/entity/EntityPlayerSP.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
+ if(!this.capabilities.isFlying && !this.inWater) addFactor = VRSettings.getInertiaAddFactor(inertiaFactor);
567567
+
568568
+ float yAdd = 1f;
569-
+ if(this.capabilities.isFlying) yAdd = 3f; //HACK
569+
+ if(this.capabilities.isFlying) yAdd = 5f; //HACK
570570
+
571571
+ this.motionX = this.motionX + (mX * addFactor);
572572
+ this.motionZ = this.motionZ + (mZ * addFactor);

patches/net/minecraft/client/renderer/EntityRenderer.java.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4407,7 +4407,7 @@
44074407
+ eye = Vec3.createVectorHelper(mc.vrSettings.vrFixedCamposX, mc.vrSettings.vrFixedCamposY, mc.vrSettings.vrFixedCamposZ);
44084408
+ }
44094409
+ }
4410-
+ Vector3f guipos = MCOpenVR.guiPos_World;
4410+
+ Vector3f guipos = MCOpenVR.guiPos_Room;
44114411
+ Matrix4f guirot = MCOpenVR.guiRotationPose;
44124412
+ Vec3 guiLocal = Vec3.createVectorHelper(0, 0, 0);
44134413
+
@@ -4561,7 +4561,7 @@
45614561
+ Vec3 pos = posAvg.add(Vec3.createVectorHelper(dir.xCoord * dist, dir.yCoord * dist, dir.zCoord * dist));
45624562
+ guipos = new Vector3f((float)pos.xCoord, (float)pos.yCoord, (float)pos.zCoord);
45634563
+ guirot = Matrix4f.rotationY(-(yawAvg + (float)Math.PI / 2)); // don't ask
4564-
+ MCOpenVR.guiPos_World = guipos;
4564+
+ MCOpenVR.guiPos_Room = guipos;
45654565
+ MCOpenVR.guiRotationPose = guirot;
45664566
+ }
45674567
+

src/com/mtbs3d/minecrift/gameplay/BackpackTracker.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ public void doProcess(Minecraft minecraft, EntityPlayerSP player){
4747
double dot = controllerDir.dotProduct(down);
4848
double dotDelta = delta.dotProduct(hmddir);
4949

50-
if (
51-
((hmdPos.yCoord - controllerPos.yCoord) > 0.05) && //controller below hmd
52-
(dot > .8) && // pointing approx down
53-
(dotDelta > 0) // behind head
54-
){
50+
boolean zone = ((Math.abs(hmdPos.yCoord - controllerPos.yCoord)) < 0.25) && //controller below hmd
51+
(dotDelta > 0); // behind head
52+
53+
if (zone){
5554
if(!wasIn[c]){
5655
if(player.inventory.currentItem != 0){
5756
previousSlot = player.inventory.currentItem;

0 commit comments

Comments
 (0)