3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

SPIGOT-3622: Issue in some combinations of spawn protection

Dieser Commit ist enthalten in:
md_5 2017-10-28 16:00:15 +11:00
Ursprung 31d3159f04
Commit 1257322d1f

Datei anzeigen

@ -84,7 +84,7 @@ public class CraftEventFactory {
BlockPosition chunkcoordinates = worldServer.getSpawn();
int distanceFromSpawn = Math.max(Math.abs(x - chunkcoordinates.getX()), Math.abs(z - chunkcoordinates.getY()));
int distanceFromSpawn = Math.max(Math.abs(x - chunkcoordinates.getX()), Math.abs(z - chunkcoordinates.getZ()));
return distanceFromSpawn > spawnSize;
}