From 52d9473e6b48b2980180dc45c78a2c389405f1f7 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 2 Apr 2012 16:40:45 -0500 Subject: [PATCH] SpawnRadius should only apply to main world. Fixes BUKKIT-1427 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 23fc7186ef..03bc38276f 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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;