Fixed world issue.

This commit is contained in:
Brianna 2019-08-05 17:40:54 -04:00
parent 7907cf195a
commit 7d9445560f

View File

@ -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);