From 85267323525617a130f9b0f34773a0fda04f5dda Mon Sep 17 00:00:00 2001 From: Oth3r <68134921+Oth3r@users.noreply.github.com> Date: Sat, 14 Jun 2025 19:07:09 -0500 Subject: [PATCH] 1.20.4 and below limitation --- src/main/java/one/oth3r/sit/utl/Utl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/one/oth3r/sit/utl/Utl.java b/src/main/java/one/oth3r/sit/utl/Utl.java index 990330c..1b89c99 100644 --- a/src/main/java/one/oth3r/sit/utl/Utl.java +++ b/src/main/java/one/oth3r/sit/utl/Utl.java @@ -485,11 +485,8 @@ public class Utl { } public static double getPlayerReach(PlayerEntity player) { - // use the BLOCK_INTERACTION_RANGE attribute if available - if (player.getAttributeInstance(EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGE) != null) { - return player.getAttributeValue(EntityAttributes.PLAYER_BLOCK_INTERACTION_RANGE); - } // fallback to 5 + // 1.20.4 and below doesn't have the range return 5; } }