Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
Fix off by 1 error for spawn protection. Fixes BUKKIT-4154
Dieser Commit ist enthalten in:
Ursprung
e7539378fa
Commit
6d0d33b9d2
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren