2018-08-06 01:46:43 +02:00
|
|
|
From dc943703d601afe8a65e5af90b9cac08fbbdf837 Mon Sep 17 00:00:00 2001
|
2018-07-15 03:53:17 +02: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
|
2018-08-06 01:46:43 +02:00
|
|
|
index e693b43a23..e75ce9b4f5 100644
|
2018-07-15 03:53:17 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2018-07-29 18:42:07 +02:00
|
|
|
@@ -2832,6 +2832,7 @@ public abstract class World implements GeneratorAccess, IIBlockAccess, AutoClose
|
2018-07-15 03:53:17 +02:00
|
|
|
return this.K;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ public boolean shouldStayLoaded(int i, int j) { return g(i, j); } // Paper - OBFHELPER
|
|
|
|
public boolean g(int i, int j) {
|
|
|
|
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
|
2018-08-06 01:46:43 +02:00
|
|
|
index 6b62235e54..26ef3a41f2 100644
|
2018-07-15 03:53:17 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldProvider.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldProvider.java
|
|
|
|
@@ -69,7 +69,7 @@ public abstract class WorldProvider {
|
|
|
|
public void l() {}
|
|
|
|
|
|
|
|
public boolean a(int i, int j) {
|
|
|
|
- return true;
|
|
|
|
+ return !this.b.shouldStayLoaded(i, j); // Paper - Use shouldStayLoaded check for all worlds
|
|
|
|
}
|
|
|
|
|
|
|
|
protected abstract void m();
|
|
|
|
--
|
|
|
|
2.18.0
|
|
|
|
|