From 4586fc8fd8cd711c6b37c28acfb0a8054b9d6b91 Mon Sep 17 00:00:00 2001 From: Mrln Date: Sun, 20 Feb 2022 15:29:13 +0100 Subject: [PATCH] Make min distance to interact with entities 6, staying consistent to notchian server (#704) --- .../java/net/minestom/server/listener/UseEntityListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/listener/UseEntityListener.java b/src/main/java/net/minestom/server/listener/UseEntityListener.java index ad5d5c065..0710da3dd 100644 --- a/src/main/java/net/minestom/server/listener/UseEntityListener.java +++ b/src/main/java/net/minestom/server/listener/UseEntityListener.java @@ -12,7 +12,7 @@ public class UseEntityListener { public static void useEntityListener(ClientInteractEntityPacket packet, Player player) { final Entity entity = Entity.getEntity(packet.targetId()); - if (entity == null || !entity.isViewer(player) || player.getDistance(entity) > 4) + if (entity == null || !entity.isViewer(player) || player.getDistance(entity) > 6) return; ClientInteractEntityPacket.Type type = packet.type();