From d073d3abde23d6dd1f07b24bcc768aed5b21e2ad Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 17 Jan 2023 11:23:22 +0100 Subject: [PATCH] Fix coordinate axis typo --- SpigotCore_Main/src/de/steamwar/entity/REntityServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java index 3d47eb2..708e48d 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java @@ -137,7 +137,7 @@ public class REntityServer implements Listener { lastLocation.put(player, to); int viewDistance = viewRadius(player); forChunkInView(player, from, (x, z) -> { - if(Math.abs(x - toX) > viewDistance || Math.abs(z - toX) > viewDistance) { + if(Math.abs(x - toX) > viewDistance || Math.abs(z - toZ) > viewDistance) { removePlayerFromChunk(player, x, z); } });