SteamWar/SpigotCore
Archiviert
13
0

Fix packet spamming through missing last location update
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-01-17 11:15:53 +01:00
Ursprung 77cc4d6a99
Commit fb122edf35

Datei anzeigen

@ -134,6 +134,7 @@ public class REntityServer implements Listener {
if(fromX == toX && fromZ == toZ) if(fromX == toX && fromZ == toZ)
return; return;
lastLocation.put(player, to);
int viewDistance = viewRadius(player); int viewDistance = viewRadius(player);
forChunkInView(player, from, (x, z) -> { 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 - toX) > viewDistance) {