mirror of https://github.com/plexusorg/Plex.git
Fixed radius not working
This commit is contained in:
parent
c284062c41
commit
757741d6e8
|
@ -70,7 +70,7 @@ public class EntityWipeCMD extends PlexCommand
|
|||
if (radius > 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");
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue