From fb122edf35c5d0d15c849727a3132255a58e97e8 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 17 Jan 2023 11:15:53 +0100 Subject: [PATCH] Fix packet spamming through missing last location update --- SpigotCore_Main/src/de/steamwar/entity/REntityServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java index 97ecc3a..3d47eb2 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntityServer.java @@ -134,6 +134,7 @@ public class REntityServer implements Listener { if(fromX == toX && fromZ == toZ) return; + lastLocation.put(player, to); int viewDistance = viewRadius(player); forChunkInView(player, from, (x, z) -> { if(Math.abs(x - toX) > viewDistance || Math.abs(z - toX) > viewDistance) {