2017-04-22 06:16:45 +00:00
|
|
|
From bd0317665aa18996d5e315cf993f1ee8c705efc8 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
|
2017-03-25 05:22:02 +00:00
|
|
|
index 08b986fd7..786d1dd22 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
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -25,7 +25,7 @@ public class ChunkCache implements IBlockAccess {
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2017-04-22 06:16:45 +00:00
|
|
|
2.12.2
|
2016-05-04 23:53:33 +00:00
|
|
|
|