2018-09-03 16:11:35 +02:00
|
|
|
From 9248fae968af8978811a695b5bf6c030499376a8 Mon Sep 17 00:00:00 2001
|
2018-09-03 05:40:14 +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-03 16:11:35 +02:00
|
|
|
index 585a0c7fd2..b38e394f83 100644
|
2018-09-03 05:40:14 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
@@ -304,7 +304,7 @@ public class CraftWorld implements World {
|
|
|
|
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.18.0
|
|
|
|
|