mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 12:35:17 +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