mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-30 14:03:24 +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);
|
||||
}
|
||||
for (Entity e : entityArray) {
|
||||
if (e.getWorld() == location.getWorld()
|
||||
if (e.getWorld() != location.getWorld()
|
||||
|| !(e instanceof LivingEntity)
|
||||
|| location.distanceSquared(e.getLocation()) >= radius * radius) continue;
|
||||
entities.add((LivingEntity) e);
|
||||
|
Loading…
Reference in New Issue
Block a user