2013-01-17 23:27:26 +01:00
|
|
|
From e3ae0c14b47cd72f771ec5a9fe4f0914f3e201f4 Mon Sep 17 00:00:00 2001
|
2013-01-15 02:18:40 +01:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Fri, 11 Jan 2013 14:54:51 -0500
|
2013-01-16 01:32:20 +01:00
|
|
|
Subject: [PATCH 11/15] Fix mob-spawn-radius setting so that its actually
|
2013-01-15 02:18:40 +01:00
|
|
|
used...
|
|
|
|
|
|
|
|
---
|
|
|
|
src/main/java/net/minecraft/server/SpawnerCreature.java | 5 ++++-
|
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
2013-01-17 23:27:26 +01:00
|
|
|
index 61721c4..124b143 100644
|
2013-01-15 02:18:40 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
|
|
|
@@ -37,7 +37,10 @@ public final class SpawnerCreature {
|
|
|
|
int j;
|
|
|
|
// Spigot start - limit radius to spawn distance (chunks aren't loaded)
|
|
|
|
if (spawnRadius == 0) {
|
|
|
|
- spawnRadius = (byte) worldserver.getServer().getViewDistance();
|
|
|
|
+ spawnRadius = (byte) worldserver.getWorld().mobSpawnRange;
|
|
|
|
+ if (spawnRadius > (byte) worldserver.getServer().getViewDistance()) {
|
|
|
|
+ spawnRadius = (byte) worldserver.getServer().getViewDistance();
|
|
|
|
+ }
|
|
|
|
if (spawnRadius > 8) {
|
|
|
|
spawnRadius = 8;
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.8.1-rc2
|
|
|
|
|