mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 12:41:50 +01:00
SPIGOT-3622: Issue in some combinations of spawn protection
This commit is contained in:
parent
31d3159f04
commit
1257322d1f
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ public class CraftEventFactory {
|
||||||
|
|
||||||
BlockPosition chunkcoordinates = worldServer.getSpawn();
|
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;
|
return distanceFromSpawn > spawnSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue