Skip to content

Commit

Permalink
Change world name comparison to UID
Browse files Browse the repository at this point in the history
  • Loading branch information
M0diis committed Feb 27, 2024
1 parent 2ddfd32 commit aa99703
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static boolean isTargetWithinRadius(
final World sourceWorld = sourceLocation.getWorld();
final World targetWorld = targetLocation.getWorld();

if(sourceWorld != null && targetWorld != null && !sourceWorld.getName().equals(targetWorld.getName())) {
if(sourceWorld != null && targetWorld != null && !sourceWorld.getUID().equals(targetWorld.getUID())) {
return false;
}

Expand Down

0 comments on commit aa99703

Please sign in to comment.