summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-05 11:17:47 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-05 11:17:47 +0000
commitbab0e8bc70317af894983460bdb3593a79de2aff (patch)
treee1be76b257d9655e3023b18c2244ee3493c15db3 /nms-patches
parente2c4f20ed1430a6fde29ba1c82d4e886db9467dc (diff)
downloadcraftbukkit-bab0e8bc70317af894983460bdb3593a79de2aff.tar
craftbukkit-bab0e8bc70317af894983460bdb3593a79de2aff.tar.gz
craftbukkit-bab0e8bc70317af894983460bdb3593a79de2aff.tar.lz
craftbukkit-bab0e8bc70317af894983460bdb3593a79de2aff.tar.xz
craftbukkit-bab0e8bc70317af894983460bdb3593a79de2aff.zip
Fix the chunks being blocked from unloading based on the keepSpawnInMemory flag
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/World.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/World.patch b/nms-patches/World.patch
index 3131a603..0effef5f 100644
--- a/nms-patches/World.patch
+++ b/nms-patches/World.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/World.java 2014-12-02 15:12:18.222036228 +0000
-+++ src/main/java/net/minecraft/server/World.java 2014-12-02 15:04:12.678047004 +0000
+--- ../work/decompile-8eb82bde//net/minecraft/server/World.java 2014-12-05 11:17:35.806563463 +0000
++++ src/main/java/net/minecraft/server/World.java 2014-12-05 11:16:59.838564261 +0000
@@ -13,6 +13,22 @@
import java.util.UUID;
import java.util.concurrent.Callable;
@@ -579,6 +579,6 @@
short short0 = 128;
- return k >= -short0 && k <= short0 && l >= -short0 && l <= short0;
-+ return k >= -short0 && k <= short0 && l >= -short0 && l <= short0 || !this.keepSpawnInMemory; // CraftBukkit - Added 'this.world.keepSpawnInMemory'
++ return k >= -short0 && k <= short0 && l >= -short0 && l <= short0 && this.keepSpawnInMemory; // CraftBukkit - Added 'this.keepSpawnInMemory'
}
}