mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 01:26:42 +00:00
Fixed radius not working
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user