Make min distance to interact with entities 6, staying consistent to notchian server (#704)

This commit is contained in:
Mrln 2022-02-20 15:29:13 +01:00 committed by GitHub
parent 62a7346f40
commit 4586fc8fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();