mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-19 15:09:25 +00:00
3.4.12
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user