mirror of
https://github.com/GeyserExtensionists/GeyserModelEngine.git
synced 2025-12-19 15:09:18 +00:00
add a world check
This commit is contained in:
@@ -418,6 +418,10 @@ public class EntityTask {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (entity.getLocation().getWorld() != player.getWorld()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (player.getLocation().distanceSquared(entity.getLocation()) > player.getSimulationDistance() * player.getSimulationDistance() * 256) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user