Skip to content

Commit 575731b

Browse files
committed
Revert "Fix: == operator may need to be replaced with .equals"
This reverts commit bfcaf82
1 parent e2c82a7 commit 575731b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/watcher/DisplayAutoDespawnWatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void run() {
6565
// Check the range has player?
6666
boolean anyPlayerInRegion = false;
6767
for (Player player : Bukkit.getOnlinePlayers()) {
68-
if ((player.getWorld().equals(world)) && (player.getLocation().distance(shop.getLocation()) < range)) {
68+
if ((player.getWorld() == world) && (player.getLocation().distance(shop.getLocation()) < range)) {
6969
anyPlayerInRegion = true;
7070
break;
7171
}

0 commit comments

Comments
 (0)