mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-29 19:17:59 +01:00
Update spawn chunk persistence patch
This commit is contained in:
parent
394581d97b
commit
bb2f77109f
1 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
From: Dmck2b <itallhappenedverysuddenly@gmail.com>
|
From: Dmck2b <itallhappenedverysuddenly@gmail.com>
|
||||||
Date: Tue, 8 Jul 2014 23:55:29 +0100
|
Date: Tue, 8 Jul 2014 23:55:29 +0100
|
||||||
Subject: [PATCH] Allow disabling of spawn chunks always being loaded
|
Subject: [PATCH] Allow for the toggling of persistent spawn chunks
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||||
|
@ -9,14 +9,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
--- a/src/main/java/net/minecraft/server/World.java
|
--- a/src/main/java/net/minecraft/server/World.java
|
||||||
+++ b/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 {
|
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
||||||
|
|
||||||
this.B();
|
this.B();
|
||||||
this.a();
|
this.a();
|
||||||
+
|
|
||||||
+ this.keepSpawnInMemory = paperSpigotConfig.keepSpawnInMemory;
|
|
||||||
|
|
||||||
|
+ this.keepSpawnInMemory = paperSpigotConfig.keepSpawnInMemory; // PaperSpigot
|
||||||
|
+
|
||||||
this.getServer().addWorld(this.world); // CraftBukkit
|
this.getServer().addWorld(this.world); // CraftBukkit
|
||||||
|
+
|
||||||
|
+ this.getWorld().setKeepSpawnInMemory(this.keepSpawnInMemory); // PaperSpigot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected abstract IChunkProvider j();
|
||||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
Loading…
Add table
Reference in a new issue