Skip to content

Commit aa99703

Browse files
author
M0diis
committed
Change world name comparison to UID
1 parent 2ddfd32 commit aa99703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/src/main/java/at/helpch/chatchat/util/ChannelUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static boolean isTargetWithinRadius(
5858
final World sourceWorld = sourceLocation.getWorld();
5959
final World targetWorld = targetLocation.getWorld();
6060

61-
if(sourceWorld != null && targetWorld != null && !sourceWorld.getName().equals(targetWorld.getName())) {
61+
if(sourceWorld != null && targetWorld != null && !sourceWorld.getUID().equals(targetWorld.getUID())) {
6262
return false;
6363
}
6464

0 commit comments

Comments
 (0)