mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fix block place protection using a larger radius. Fixes BUKKIT-1617
This commit is contained in:
parent
4c8f6f2caa
commit
1d361c2f48
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class CraftEventFactory {
|
||||||
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();
|
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();
|
||||||
|
|
||||||
int distanceFromSpawn = (int) Math.max(Math.abs(x - chunkcoordinates.x), Math.abs(z - chunkcoordinates.z));
|
int distanceFromSpawn = (int) 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) {
|
public static <T extends Event> T callEvent(T event) {
|
||||||
|
|
Loading…
Reference in a new issue