mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-20 05:11:22 +01:00
Fixed world issue.
This commit is contained in:
parent
7907cf195a
commit
7d9445560f
@ -59,7 +59,7 @@ public class EntityUtils {
|
|||||||
cachedChunks.put(chunk, entityArray);
|
cachedChunks.put(chunk, entityArray);
|
||||||
}
|
}
|
||||||
for (Entity e : entityArray) {
|
for (Entity e : entityArray) {
|
||||||
if (e.getWorld() == location.getWorld()
|
if (e.getWorld() != location.getWorld()
|
||||||
|| !(e instanceof LivingEntity)
|
|| !(e instanceof LivingEntity)
|
||||||
|| location.distanceSquared(e.getLocation()) >= radius * radius) continue;
|
|| location.distanceSquared(e.getLocation()) >= radius * radius) continue;
|
||||||
entities.add((LivingEntity) e);
|
entities.add((LivingEntity) e);
|
||||||
|
Loading…
Reference in New Issue
Block a user