Chunk.load is just as World.loadChunk

This commit is contained in:
Brokkonaut
2019-06-20 06:08:59 +02:00
parent 3efd92d9df
commit e6b0108bc5

View File

@ -799,7 +799,7 @@ public class BukkitUtils {
return e; return e;
} }
if (!chunk.isLoaded()) { if (!chunk.isLoaded()) {
chunk.load(); chunk.getWorld().getChunkAt(chunk.getX(), chunk.getZ());
e = Bukkit.getEntity(uuid); e = Bukkit.getEntity(uuid);
if (e != null) { if (e != null) {
return e; return e;