Fix packet spamming through missing last location update
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
77cc4d6a99
Commit
fb122edf35
@ -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) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren