We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bea1cb5 commit e2c82a7Copy full SHA for e2c82a7
src/main/java/org/maxgamer/quickshop/watcher/DisplayAutoDespawnWatcher.java
@@ -65,7 +65,7 @@ public void run() {
65
// Check the range has player?
66
boolean anyPlayerInRegion = false;
67
for (Player player : Bukkit.getOnlinePlayers()) {
68
- if ((player.getWorld() == world) && (player.getLocation().distance(shop.getLocation()) < range)) {
+ if ((player.getWorld().equals(world)) && (player.getLocation().distance(shop.getLocation()) < range)) {
69
anyPlayerInRegion = true;
70
break;
71
}
0 commit comments