From 7d745aa3cdb4ad4cc879c2cd362dbe0a3cafa4d3 Mon Sep 17 00:00:00 2001 From: zimzaza4 <3625282098@qq.com> Date: Sun, 10 Nov 2024 13:02:40 +0800 Subject: [PATCH] fix again --- src/main/java/re/imc/geysermodelengine/model/EntityTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/re/imc/geysermodelengine/model/EntityTask.java b/src/main/java/re/imc/geysermodelengine/model/EntityTask.java index e5d5486..a265aed 100644 --- a/src/main/java/re/imc/geysermodelengine/model/EntityTask.java +++ b/src/main/java/re/imc/geysermodelengine/model/EntityTask.java @@ -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) {