Update to MC 1.14 / Fabric
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
package com.replaymod.replay.camera;
|
||||
|
||||
import de.johni0702.minecraft.gui.utils.lwjgl.vector.Vector3f;
|
||||
import net.minecraft.client.settings.KeyBinding;
|
||||
|
||||
import javax.vecmath.Vector3f;
|
||||
|
||||
import static com.replaymod.core.versions.MCVer.*;
|
||||
|
||||
// TODO: Marius is responsible for this. Please, someone clean it up.
|
||||
@@ -129,8 +128,7 @@ public class ClassicCameraController implements CameraController {
|
||||
return;
|
||||
}
|
||||
|
||||
Vector3f movement = new Vector3f(direction);
|
||||
movement.normalize();
|
||||
Vector3f movement = direction.normalise(null);
|
||||
double factor = motion * (frac / 1000D);
|
||||
|
||||
camera.moveCamera(movement.x * factor, movement.y * factor, movement.z * factor);
|
||||
@@ -162,8 +160,8 @@ public class ClassicCameraController implements CameraController {
|
||||
Vector3f dbf = direction;
|
||||
|
||||
if(dirBefore != null) {
|
||||
dirBefore.normalize();
|
||||
dirBefore.add(direction);
|
||||
dirBefore.normalise(dirBefore);
|
||||
Vector3f.add(direction, direction, dirBefore);
|
||||
direction = dirBefore;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user