9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-19 15:09:25 +00:00
This commit is contained in:
XiaoMoMi
2024-06-15 03:11:23 +08:00
parent 22cfc67680
commit 92f4ad4c4d
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ plugins {
allprojects {
project.group = "net.momirealms"
project.version = "3.4.11"
project.version = "3.4.12"
apply<JavaPlugin>()
apply(plugin = "java")

View File

@@ -43,7 +43,7 @@ public class TempFakeItem {
SimpleLocation simpleLocation = SimpleLocation.of(location);
ArrayList<Player> 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);
}