2016-09-11 04:42:47 +02:00
|
|
|
From 70f5e6b8db75750b358ce6dabe3a4ea4f69b7263 Mon Sep 17 00:00:00 2001
|
2016-05-05 01:53:33 +02: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
|
2016-07-17 03:10:43 +02:00
|
|
|
index 08b986f..786d1dd 100644
|
2016-05-05 01:53:33 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/ChunkCache.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ChunkCache.java
|
2016-05-12 04:07:46 +02:00
|
|
|
@@ -25,7 +25,7 @@ public class ChunkCache implements IBlockAccess {
|
2016-05-05 01:53:33 +02: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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2016-09-11 04:42:47 +02:00
|
|
|
2.10.0.windows.1
|
2016-05-05 01:53:33 +02:00
|
|
|
|