fix again

This commit is contained in:
zimzaza4
2024-11-10 13:02:40 +08:00
parent 6a05b3acc0
commit 7d745aa3cd

View File

@@ -329,8 +329,8 @@ public class EntityTask {
if (GeyserModelEngine.getInstance().getJoinedPlayer() != null && GeyserModelEngine.getInstance().getJoinedPlayer().getIfPresent(player) != null) {
return false;
}
Location playerLocation = player.getLocation();
Location entityLocation = entity.getLocation();
Location playerLocation = player.getLocation().clone();
Location entityLocation = entity.getLocation().clone();
playerLocation.setY(0);
entityLocation.setY(0);
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 16) {