2018-08-06 07:46:43 +08:00
|
|
|
From 75a20e9c139b7789214b2e974441005d917b6870 Mon Sep 17 00:00:00 2001
|
2016-05-05 07:53:33 +08: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
|
2018-07-23 16:39:55 +08:00
|
|
|
index 6d153e4311..07444a86ac 100644
|
2016-05-05 07:53:33 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/ChunkCache.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ChunkCache.java
|
2018-07-16 23:34:55 +08:00
|
|
|
@@ -27,7 +27,7 @@ public class ChunkCache implements IIBlockAccess {
|
2016-05-05 07:53:33 +08: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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2018-07-19 12:42:43 +08:00
|
|
|
2.18.0
|
2016-05-05 07:53:33 +08:00
|
|
|
|