Skip to content

Commit

Permalink
Fix 1.8 check
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Aug 10, 2024
1 parent 04bcf96 commit a469cdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a469cdd

Please sign in to comment.