This commit is contained in:
Leijurv 2019-02-09 17:38:42 -08:00
parent e37a09a1c8
commit 1a430dc2cf
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -115,7 +115,7 @@ public final class InputOverrideHandler extends Behavior implements IInputOverri
ctx.player().movementInput = new PlayerMovementInput(this); ctx.player().movementInput = new PlayerMovementInput(this);
} }
} else { } else {
if (ctx.player().movementInput.getClass() == PlayerMovementInput.class) { if (ctx.player().movementInput.getClass() == PlayerMovementInput.class) { // allow other movement inputs that arent this one, e.g. for a freecam
ctx.player().movementInput = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings); ctx.player().movementInput = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
} }
} }