2018-10-05 05:18:46 +02:00
|
|
|
From 81f1e6ead3e17cdceaab153207a34e7b3cc1ca30 Mon Sep 17 00:00:00 2001
|
2018-09-22 17:32:38 +02:00
|
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
|
|
Date: Sun, 2 Sep 2018 19:34:33 -0700
|
|
|
|
Subject: [PATCH] Make CraftWorld#loadChunk(int, int, false) load unconverted
|
|
|
|
chunks
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2018-09-27 04:35:42 +02:00
|
|
|
index 2422251c72..d0110070a9 100644
|
2018-09-22 17:32:38 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2018-09-27 04:35:42 +02:00
|
|
|
@@ -289,7 +289,7 @@ public class CraftWorld implements World {
|
2018-09-22 17:32:38 +02:00
|
|
|
public boolean loadChunk(int x, int z, boolean generate) {
|
|
|
|
org.spigotmc.AsyncCatcher.catchOp( "chunk load"); // Spigot
|
|
|
|
chunkLoadCount++;
|
|
|
|
- return world.getChunkProviderServer().getChunkAt(x, z, true, generate) != null;
|
|
|
|
+ return world.getChunkProviderServer().getChunkAt(x, z, true, generate || isChunkGenerated(x, z)) != null; // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isChunkLoaded(Chunk chunk) {
|
|
|
|
--
|
|
|
|
2.19.0
|
|
|
|
|