From a469cdd75c521659b33a735ec2563e4f56b5d570 Mon Sep 17 00:00:00 2001 From: SamB440 Date: Thu, 8 Aug 2024 21:39:29 +0100 Subject: [PATCH] Fix 1.8 check --- .../grimac/predictionengine/movementtick/MovementTicker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ac/grim/grimac/predictionengine/movementtick/MovementTicker.java b/src/main/java/ac/grim/grimac/predictionengine/movementtick/MovementTicker.java index 45a6cf8850..47ac37a3f5 100644 --- a/src/main/java/ac/grim/grimac/predictionengine/movementtick/MovementTicker.java +++ b/src/main/java/ac/grim/grimac/predictionengine/movementtick/MovementTicker.java @@ -54,7 +54,7 @@ public static void handleEntityCollisions(GrimPlayer player) { continue; // 1.9+ player on 1.8- server with ViaVersion prevent-collision disabled. - if (PacketEvents.getAPI().getServerManager().getVersion().isNewerThan(ServerVersion.V_1_8) + if (PacketEvents.getAPI().getServerManager().getVersion().isNewerThanOrEquals(ServerVersion.V_1_9) && !EntityPredicates.canBePushedBy(player, entity, teamHandler).test(player)) continue; SimpleCollisionBox entityBox = entity.getPossibleCollisionBoxes();