Fixed radius not working

This commit is contained in:
Focusvity
2023-11-26 16:36:56 +11:00
parent c284062c41
commit 757741d6e8

View File

@ -70,7 +70,7 @@ public class EntityWipeCMD extends PlexCommand
if (radius > 0) if (radius > 0)
{ {
PlexLog.log("we got here, radius is > 0"); PlexLog.log("we got here, radius is > 0");
if (playerSender != null && playerSender.getLocation().distanceSquared(entity.getLocation()) > radius) if (playerSender != null && entity.getWorld() == playerSender.getWorld() && playerSender.getLocation().distance(entity.getLocation()) > radius)
{ {
PlexLog.log("continuing"); PlexLog.log("continuing");
continue; continue;