mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 20:03:51 -07:00
SpawnRadius should only apply to main world. Fixes BUKKIT-1427
This commit is contained in:
@@ -65,6 +65,7 @@ public class CraftEventFactory {
|
|||||||
WorldServer worldServer = world.getHandle();
|
WorldServer worldServer = world.getHandle();
|
||||||
int spawnSize = Bukkit.getServer().getSpawnRadius();
|
int spawnSize = Bukkit.getServer().getSpawnRadius();
|
||||||
|
|
||||||
|
if (world.getHandle().dimension != 0) return true;
|
||||||
if (spawnSize <= 0) return true;
|
if (spawnSize <= 0) return true;
|
||||||
if (player.isOp()) return true;
|
if (player.isOp()) return true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user