2017-09-18 13:04:01 +02:00
|
|
|
From 7afb68dd6652bc7684704811a4f00d94e3378599 Mon Sep 17 00:00:00 2001
|
2016-04-06 01:53:30 +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
|
2017-09-18 13:04:01 +02:00
|
|
|
index a968a5bb6..e4f509ce3 100644
|
2016-04-06 01:53:30 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2017-09-18 13:04:01 +02:00
|
|
|
@@ -3198,6 +3198,7 @@ public abstract class World implements IBlockAccess {
|
2017-05-14 20:05:01 +02:00
|
|
|
return this.P;
|
2016-04-06 01:53:30 +02:00
|
|
|
}
|
|
|
|
|
2016-11-17 03:23:38 +01:00
|
|
|
+ public boolean shouldStayLoaded(int i, int j) { return e(i, j); } // Paper - OBFHELPER
|
|
|
|
public boolean e(int i, int j) {
|
2016-04-06 01:53:30 +02: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
|
2017-07-28 15:45:16 +02:00
|
|
|
index d0265f960..35d8d1a6e 100644
|
2016-04-06 01:53:30 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldProvider.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldProvider.java
|
2016-12-21 22:29:50 +01:00
|
|
|
@@ -138,6 +138,6 @@ public abstract class WorldProvider {
|
2016-11-17 03:23:38 +01:00
|
|
|
public void s() {}
|
2016-04-06 01:53:30 +02:00
|
|
|
|
2016-11-17 03:23:38 +01:00
|
|
|
public boolean c(int i, int j) {
|
2016-04-06 01:53:30 +02:00
|
|
|
- return true;
|
|
|
|
+ return !this.b.shouldStayLoaded(i, j); // Paper - Use shouldStayLoaded check for all worlds
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2017-09-18 13:04:01 +02:00
|
|
|
2.14.1
|
2016-04-06 01:53:30 +02:00
|
|
|
|