1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-25 00:07:36 +01:00

SpawnRadius should only apply to main world. Fixes BUKKIT-1427

This commit is contained in:
feildmaster 2012-04-02 16:40:45 -05:00
parent bad3979b8f
commit 52d9473e6b

View file

@ -65,6 +65,7 @@ public class CraftEventFactory {
WorldServer worldServer = world.getHandle();
int spawnSize = Bukkit.getServer().getSpawnRadius();
if (world.getHandle().dimension != 0) return true;
if (spawnSize <= 0) return true;
if (player.isOp()) return true;