testserver/Spigot-Server-Patches/0112-Do-not-load-chunks-for...

23 lines
826 B
Diff
Raw Normal View History

From b24b2307edfb6818ab904d60d55288bbf7a318ff Mon Sep 17 00:00:00 2001
2016-05-04 23:53:33 +00:00
From: Aikar <aikar@aikar.co>
Date: Tue, 19 Jan 2016 00:13:19 -0500
Subject: [PATCH] Do not load chunks for pathfinding
diff --git a/src/main/java/net/minecraft/server/ChunkCache.java b/src/main/java/net/minecraft/server/ChunkCache.java
index 96c0c762ac..7020152a2d 100644
2016-05-04 23:53:33 +00:00
--- a/src/main/java/net/minecraft/server/ChunkCache.java
+++ b/src/main/java/net/minecraft/server/ChunkCache.java
@@ -26,7 +26,7 @@ public class ChunkCache implements IIBlockAccess {
2016-05-04 23:53:33 +00:00
for (l = this.a; l <= j; ++l) {
for (i1 = this.b; i1 <= k; ++i1) {
- this.c[l - this.a][i1 - this.b] = world.getChunkAt(l, i1);
+ this.c[l - this.a][i1 - this.b] = world.getChunkIfLoaded(l, i1); // Paper
}
}
--
2.18.0
2016-05-04 23:53:33 +00:00