2018-11-03 10:31:30 +01:00
|
|
|
From 61bb26690d5a5a2c0fbb4094c481fc56d8a16142 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-11-03 10:31:30 +01:00
|
|
|
index 4b8b66352b..7e6a7b0e90 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-11-03 10:31:30 +01:00
|
|
|
@@ -295,7 +295,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) {
|
|
|
|
--
|
2018-10-23 01:16:21 +02:00
|
|
|
2.19.1
|
2018-09-22 17:32:38 +02:00
|
|
|
|