mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-20 15:29:26 +00:00
fix again
This commit is contained in:
@@ -329,8 +329,8 @@ public class EntityTask {
|
|||||||
if (GeyserModelEngine.getInstance().getJoinedPlayer() != null && GeyserModelEngine.getInstance().getJoinedPlayer().getIfPresent(player) != null) {
|
if (GeyserModelEngine.getInstance().getJoinedPlayer() != null && GeyserModelEngine.getInstance().getJoinedPlayer().getIfPresent(player) != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Location playerLocation = player.getLocation();
|
Location playerLocation = player.getLocation().clone();
|
||||||
Location entityLocation = entity.getLocation();
|
Location entityLocation = entity.getLocation().clone();
|
||||||
playerLocation.setY(0);
|
playerLocation.setY(0);
|
||||||
entityLocation.setY(0);
|
entityLocation.setY(0);
|
||||||
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 16) {
|
if (playerLocation.distanceSquared(entityLocation) > player.getSendViewDistance() * player.getSendViewDistance() * 16) {
|
||||||
|
|||||||
Reference in New Issue
Block a user