mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-08 11:50:36 +01:00
Make min distance to interact with entities 6, staying consistent to notchian server (#704)
This commit is contained in:
parent
62a7346f40
commit
4586fc8fd8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user