diff --git a/build.gradle.kts b/build.gradle.kts index 8009605..ebbca19 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { allprojects { project.group = "net.momirealms" - project.version = "3.4.11" + project.version = "3.4.12" apply() apply(plugin = "java") diff --git a/plugin/src/main/java/net/momirealms/customcrops/mechanic/misc/TempFakeItem.java b/plugin/src/main/java/net/momirealms/customcrops/mechanic/misc/TempFakeItem.java index fb74bbd..a6e06d1 100644 --- a/plugin/src/main/java/net/momirealms/customcrops/mechanic/misc/TempFakeItem.java +++ b/plugin/src/main/java/net/momirealms/customcrops/mechanic/misc/TempFakeItem.java @@ -43,7 +43,7 @@ public class TempFakeItem { SimpleLocation simpleLocation = SimpleLocation.of(location); ArrayList viewers = new ArrayList<>(); if (viewer == null) - for (Player player : Bukkit.getOnlinePlayers()) { + for (Player player : location.getWorld().getPlayers()) { if (simpleLocation.isNear(SimpleLocation.of(player.getLocation()), 48)) { viewers.add(player); }