mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 05:31:32 +01:00
SpawnRadius should only apply to main world. Fixes BUKKIT-1427
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
ee87f28221
commit
eabee56243
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue