fix compat between immersive portals

This commit is contained in:
gnembon committed 2020-09-01 02:18:45 -03:00
1 parent ee25246c87
commit c00cbb72bb
1 file changed
+2 -1
@@ -42,7 +42,8 @@ public abstract class ServerPlayNetworkHandler_antiCheatDisabledMixin
return isHost() || CarpetSettings.antiCheatDisabled;
}
@Redirect(method = "onPlayerMove", at = @At(
@Redirect(method = "onPlayerMove", require = 0, // don't crash with immersive portals,
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/network/ServerPlayerEntity;isInTeleportationState()Z"))
private boolean relaxMoveRestrictions(ServerPlayerEntity serverPlayerEntity)