SteamWar/SpigotCore
Archiviert
13
0

Fix coordinate axis typo
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-01-17 11:23:22 +01:00
Ursprung fb122edf35
Commit d073d3abde

Datei anzeigen

@ -137,7 +137,7 @@ public class REntityServer implements Listener {
lastLocation.put(player, to); 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 - toZ) > viewDistance) {
removePlayerFromChunk(player, x, z); removePlayerFromChunk(player, x, z);
} }
}); });