mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-08 20:00:18 +01:00
Increase radius limit
This commit is contained in:
parent
b0f7fb4348
commit
d54c5ad8b4
@ -286,7 +286,7 @@ public class EventListen implements Listener {
|
|||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
if (player == null || !player.isValid())
|
if (player == null || !player.isValid())
|
||||||
return;
|
return;
|
||||||
for (Entity entity : player.getNearbyEntities(72, 72, 72)) {
|
for (Entity entity : player.getNearbyEntities(200, 200, 200)) {
|
||||||
if (entity instanceof Player && npcRegistry.isNPC(entity)) {
|
if (entity instanceof Player && npcRegistry.isNPC(entity)) {
|
||||||
final EntityPlayer entitynpc = ((CraftPlayer) entity).getHandle();
|
final EntityPlayer entitynpc = ((CraftPlayer) entity).getHandle();
|
||||||
NMS.sendPacket(player, new PacketPlayOutPlayerInfo(
|
NMS.sendPacket(player, new PacketPlayOutPlayerInfo(
|
||||||
@ -303,7 +303,7 @@ public class EventListen implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.runTaskLater(CitizensAPI.getPlugin(), 40);
|
}.runTaskLater(CitizensAPI.getPlugin(), 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user