3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 11:30:06 +01:00
Paper/Spigot-Server-Patches/0111-Do-not-load-chunks-for-pathfinding.patch

23 Zeilen
832 B
Diff

From bc7f6e6e280068fc1cacb38f0fcca0902efe0597 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
index ff740bc1a7..78adbf9062 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
@@ -21,7 +21,7 @@ public class ChunkCache implements IIBlockAccess {
2016-05-05 01:53:33 +02:00
for(int l = this.a; l <= j; ++l) {
for(int i1 = this.b; i1 <= k; ++i1) {
2016-05-05 01:53:33 +02:00
- 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.19.0
2016-05-05 01:53:33 +02:00