mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-10 06:48:06 +02:00
Double check world in skin packet tracker
This commit is contained in:
parent
feae637824
commit
9e4274516a
@ -183,10 +183,11 @@ public class SkinPacketTracker {
|
|||||||
if (player == null || player.hasMetadata("NPC"))
|
if (player == null || player.hasMetadata("NPC"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!player.canSee(from))
|
player.getLocation(CACHE_LOCATION);
|
||||||
|
if (!player.canSee(from) || !location.getWorld().equals(CACHE_LOCATION.getWorld()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (location.distanceSquared(player.getLocation(CACHE_LOCATION)) > radius)
|
if (location.distanceSquared(CACHE_LOCATION) > radius)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
updateViewer(player);
|
updateViewer(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user