mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-13 19:51:27 +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) {
|
public static void useEntityListener(ClientInteractEntityPacket packet, Player player) {
|
||||||
final Entity entity = Entity.getEntity(packet.targetId());
|
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;
|
return;
|
||||||
|
|
||||||
ClientInteractEntityPacket.Type type = packet.type();
|
ClientInteractEntityPacket.Type type = packet.type();
|
||||||
|
Loading…
Reference in New Issue
Block a user