Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0017-Allow-for-toggling-of-spawn-chunks.patch

38 Zeilen
1.7 KiB
Diff

From 7a1085b97d3e2cd5529876d6441556fe08d4b3d4 Mon Sep 17 00:00:00 2001
2014-07-09 01:00:00 +02:00
From: Dmck2b <itallhappenedverysuddenly@gmail.com>
2015-03-08 02:16:09 +01:00
Date: Sat, 7 Mar 2015 21:50:40 -0600
Subject: [PATCH] Allow for toggling of spawn chunks
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
2015-03-20 01:41:36 +01:00
index 9c98645..383178f 100644
2014-07-09 01:00:00 +02:00
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
2015-03-20 01:41:36 +01:00
@@ -230,6 +230,7 @@ public abstract class World implements IBlockAccess {
2015-03-08 02:16:09 +01:00
});
this.getServer().addWorld(this.world);
// CraftBukkit end
+ this.keepSpawnInMemory = this.paperSpigotConfig.keepSpawnInMemory; // PaperSpigot
2015-03-08 02:16:09 +01:00
timings = new SpigotTimings.WorldTimingsHandler(this); // Spigot - code below can generate new world and access timings
this.entityLimiter = new org.spigotmc.TickLimiter(spigotConfig.entityMaxTickTime);
this.tileLimiter = new org.spigotmc.TickLimiter(spigotConfig.tileMaxTickTime);
2014-07-09 01:00:00 +02:00
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
2015-03-08 02:16:09 +01:00
index 7ad9bb3..8d707f7 100644
2014-07-09 01:00:00 +02:00
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
2014-11-28 02:17:45 +01:00
@@ -139,4 +139,11 @@ public class PaperSpigotWorldConfig
2014-07-09 01:00:00 +02:00
softDespawnDistance = softDespawnDistance*softDespawnDistance;
hardDespawnDistance = hardDespawnDistance*hardDespawnDistance;
}
2014-11-28 02:17:45 +01:00
+
2014-07-09 01:00:00 +02:00
+ public boolean keepSpawnInMemory;
+ private void keepSpawnInMemory()
+ {
+ keepSpawnInMemory = getBoolean( "keep-spawn-loaded", true );
+ log( "Keep spawn chunk loaded: " + keepSpawnInMemory );
+ }
}
--
2015-03-08 02:16:09 +01:00
1.9.1
2014-07-09 01:00:00 +02:00