2014-07-09 01:00:00 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Dmck2b <itallhappenedverysuddenly@gmail.com>
|
|
|
|
Date: Tue, 8 Jul 2014 23:55:29 +0100
|
2014-07-10 06:46:54 +02:00
|
|
|
Subject: [PATCH] Allow disabling of spawn chunks always being loaded
|
2014-07-09 01:00:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
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 {
|
2014-07-10 06:46:54 +02:00
|
|
|
|
2014-07-09 01:00:00 +02:00
|
|
|
this.B();
|
|
|
|
this.a();
|
2014-07-10 06:46:54 +02:00
|
|
|
+
|
|
|
|
+ this.keepSpawnInMemory = paperSpigotConfig.keepSpawnInMemory;
|
2014-07-09 01:00:00 +02:00
|
|
|
|
|
|
|
this.getServer().addWorld(this.world); // CraftBukkit
|
|
|
|
}
|
|
|
|
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
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
|
|
|
softDespawnDistance = softDespawnDistance*softDespawnDistance;
|
|
|
|
hardDespawnDistance = hardDespawnDistance*hardDespawnDistance;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean keepSpawnInMemory;
|
|
|
|
+ private void keepSpawnInMemory()
|
|
|
|
+ {
|
|
|
|
+ keepSpawnInMemory = getBoolean( "keep-spawn-loaded", true );
|
|
|
|
+ log( "Keep spawn chunk loaded: " + keepSpawnInMemory );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|