mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-14 04:02:01 +01: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"))
|
||||
continue;
|
||||
|
||||
if (!player.canSee(from))
|
||||
player.getLocation(CACHE_LOCATION);
|
||||
if (!player.canSee(from) || !location.getWorld().equals(CACHE_LOCATION.getWorld()))
|
||||
continue;
|
||||
|
||||
if (location.distanceSquared(player.getLocation(CACHE_LOCATION)) > radius)
|
||||
if (location.distanceSquared(CACHE_LOCATION) > radius)
|
||||
continue;
|
||||
|
||||
updateViewer(player);
|
||||
|
Loading…
Reference in New Issue
Block a user