mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Fix off by 1 error for spawn protection. Fixes BUKKIT-4154
By: Jonatan Noponen <jonatan.noponen@gmail.com>
This commit is contained in:
parent
ed3c404bc3
commit
7ff6d4cf4c
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class CraftEventFactory {
|
|||
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();
|
||||
|
||||
int distanceFromSpawn = Math.max(Math.abs(x - chunkcoordinates.x), Math.abs(z - chunkcoordinates.z));
|
||||
return distanceFromSpawn >= spawnSize;
|
||||
return distanceFromSpawn > spawnSize;
|
||||
}
|
||||
|
||||
public static <T extends Event> T callEvent(T event) {
|
||||
|
|
Loading…
Reference in a new issue