2019-01-01 03:15:55 +00:00
|
|
|
From 5a15c3db1c4118969b832e0d827619f0b3602afc Mon Sep 17 00:00:00 2001
|
2018-07-15 01:53:17 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Tue, 5 Apr 2016 19:42:22 -0400
|
|
|
|
Subject: [PATCH] Don't spam reload spawn chunks in nether/end
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
2019-01-01 03:15:55 +00:00
|
|
|
index a7342da04..11c77ade1 100644
|
2018-07-15 01:53:17 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -2843,6 +2843,7 @@ public abstract class World implements IEntityAccess, GeneratorAccess, IIBlockAc
|
2018-07-15 01:53:17 +00:00
|
|
|
return this.K;
|
|
|
|
}
|
|
|
|
|
2018-08-26 18:11:49 +00:00
|
|
|
+ public boolean isSpawnChunk(int i, int j) { return e(i, j); } // Paper - OBFHELPER
|
|
|
|
public boolean e(int i, int j) {
|
2018-07-15 01:53:17 +00:00
|
|
|
BlockPosition blockposition = this.getSpawn();
|
|
|
|
int k = i * 16 + 8 - blockposition.getX();
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldProvider.java b/src/main/java/net/minecraft/server/WorldProvider.java
|
2019-01-01 03:15:55 +00:00
|
|
|
index 5e87e537e..3911e4947 100644
|
2018-07-15 01:53:17 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldProvider.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldProvider.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -69,7 +69,7 @@ public abstract class WorldProvider {
|
|
|
|
public void l() {}
|
2018-07-15 01:53:17 +00:00
|
|
|
|
|
|
|
public boolean a(int i, int j) {
|
2018-10-22 23:16:21 +00:00
|
|
|
- return !this.b.isForceLoaded(i, j);
|
|
|
|
+ return !this.b.isSpawnChunk(i, j) && !this.b.isForceLoaded(i, j); // Paper - Use spawn chunks check for all worlds
|
2018-07-15 01:53:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected abstract void m();
|
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-07-15 01:53:17 +00:00
|
|
|
|