I fucking hate arios

This commit is contained in:
Player Name 2026-06-28 00:06:19 +02:00
parent 5f00844221
commit 5beca2839c

View file

@ -247,9 +247,7 @@ public final class WalkingQueue {
if (last == null) {
last = p.getLocation();
}
if ((last.getRegionX() - entity.getLocation().getRegionX()) >= 4 || (last.getRegionX() - entity.getLocation().getRegionX()) <= -4) {
p.getPlayerFlags().setUpdateSceneGraph(true);
} else if ((last.getRegionY() - entity.getLocation().getRegionY()) >= 4 || (last.getRegionY() - entity.getLocation().getRegionY()) <= -4) {
if (last.getChunk() != p.getLocation().getChunk()) {
p.getPlayerFlags().setUpdateSceneGraph(true);
}
}
@ -272,18 +270,7 @@ public final class WalkingQueue {
if (lastRegion == null) {
lastRegion = location;
}
int rx = lastRegion.getRegionX();
int ry = lastRegion.getRegionY();
int cx = location.getRegionX();
int cy = location.getRegionY();
if ((rx - cx) >= 4) {
p.getPlayerFlags().setUpdateSceneGraph(true);
} else if ((rx - cx) <= -4) {
p.getPlayerFlags().setUpdateSceneGraph(true);
}
if ((ry - cy) >= 4) {
p.getPlayerFlags().setUpdateSceneGraph(true);
} else if ((ry - cy) <= -4) {
if (lastRegion.getChunk() != location.getChunk()) {
p.getPlayerFlags().setUpdateSceneGraph(true);
}
if (move && p.getPlayerFlags().isUpdateSceneGraph()) {