Fix checking distance to another player in another world
This commit is contained in:
parent
e48d7c97c9
commit
295b9d1ee2
|
|
@ -35,7 +35,8 @@ public class Frame {
|
|||
return false;
|
||||
if (!playerSettings.isSeeingParticles())
|
||||
return false;
|
||||
return player.getLocation().distance(location) < 100;
|
||||
Location playerLocation = player.getLocation();
|
||||
return location.getWorld().getUID().equals(playerLocation.getWorld().getUID()) && player.getLocation().distance(location) < 100;
|
||||
}).collect(Collectors.toList())
|
||||
)
|
||||
.spawn();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user