mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-20 07:29:27 +00:00
3.4.12
This commit is contained in:
@@ -8,7 +8,7 @@ plugins {
|
|||||||
allprojects {
|
allprojects {
|
||||||
|
|
||||||
project.group = "net.momirealms"
|
project.group = "net.momirealms"
|
||||||
project.version = "3.4.11"
|
project.version = "3.4.12"
|
||||||
|
|
||||||
apply<JavaPlugin>()
|
apply<JavaPlugin>()
|
||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class TempFakeItem {
|
|||||||
SimpleLocation simpleLocation = SimpleLocation.of(location);
|
SimpleLocation simpleLocation = SimpleLocation.of(location);
|
||||||
ArrayList<Player> viewers = new ArrayList<>();
|
ArrayList<Player> viewers = new ArrayList<>();
|
||||||
if (viewer == null)
|
if (viewer == null)
|
||||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
for (Player player : location.getWorld().getPlayers()) {
|
||||||
if (simpleLocation.isNear(SimpleLocation.of(player.getLocation()), 48)) {
|
if (simpleLocation.isNear(SimpleLocation.of(player.getLocation()), 48)) {
|
||||||
viewers.add(player);
|
viewers.add(player);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user