Fixed radius not working

This commit is contained in:
Focusvity 2023-11-26 16:36:56 +11:00
parent c284062c41
commit 757741d6e8
No known key found for this signature in database
GPG Key ID: 5624C6428B55CB99
1 changed files with 1 additions and 1 deletions

View File

@ -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;