update to 24w33a
This commit is contained in:
1 parent
9940feb7d3
commit
d11586fdaf
58 files changed
+379
-875
No files matched your search
@@ -83,16 +83,6 @@ public abstract class ServerPlayer_scarpetEventMixin extends Player implements S
|
||||
}
|
||||
}
|
||||
|
||||
@Redirect(method = "setPlayerInput", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/server/level/ServerPlayer;setShiftKeyDown(Z)V"
|
||||
))
|
||||
private void setSneakingConditionally(ServerPlayer serverPlayerEntity, boolean sneaking)
|
||||
{
|
||||
if (!((EntityInterface)serverPlayerEntity.getVehicle()).isPermanentVehicle()) // won't since that method makes sure its not null
|
||||
serverPlayerEntity.setShiftKeyDown(sneaking);
|
||||
}
|
||||
|
||||
private Vec3 previousLocation;
|
||||
private ResourceKey<Level> previousDimension;
|
||||
|
||||
|
||||
Reference in new issue
Block a user