diff --git a/CraftBukkit-Patches/0023-Allow-disabling-of-spawn-chunks-always-being-loaded.patch b/CraftBukkit-Patches/0023-Allow-for-toggling-of-spawn-chunks.patch similarity index 63% rename from CraftBukkit-Patches/0023-Allow-disabling-of-spawn-chunks-always-being-loaded.patch rename to CraftBukkit-Patches/0023-Allow-for-toggling-of-spawn-chunks.patch index ebff62e51a..17eba67fc0 100644 --- a/CraftBukkit-Patches/0023-Allow-disabling-of-spawn-chunks-always-being-loaded.patch +++ b/CraftBukkit-Patches/0023-Allow-for-toggling-of-spawn-chunks.patch @@ -1,22 +1,22 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Dmck2b -Date: Tue, 8 Jul 2014 23:55:29 +0100 -Subject: [PATCH] Allow disabling of spawn chunks always being loaded +Date: Thu, 10 Jul 2014 16:57:10 +0100 +Subject: [PATCH] Allow for toggling of spawn chunks +Now with 100% more confirmed working by creator diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess { - - this.B(); - this.a(); -+ -+ this.keepSpawnInMemory = paperSpigotConfig.keepSpawnInMemory; - - this.getServer().addWorld(this.world); // CraftBukkit - } + this.ticksPerAnimalSpawns = this.getServer().getTicksPerAnimalSpawns(); // CraftBukkit + this.ticksPerMonsterSpawns = this.getServer().getTicksPerMonsterSpawns(); // CraftBukkit + // CraftBukkit end ++ this.keepSpawnInMemory = this.paperSpigotConfig.keepSpawnInMemory; // PaperSpigot + // Spigot start + this.chunkTickRadius = (byte) ( ( this.getServer().getViewDistance() < 7 ) ? this.getServer().getViewDistance() : 7 ); + this.chunkTickList = new net.minecraft.util.gnu.trove.map.hash.TLongShortHashMap( spigotConfig.chunksPerTick * 5, 0.7f, Long.MIN_VALUE, Short.MIN_VALUE ); diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java