2019-03-20 00:28:15 +00:00
|
|
|
From 874d71db6ba9406d83c07e4f6cd40bbf504d316d Mon Sep 17 00:00:00 2001
|
2018-09-22 15:32:38 +00: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
|
2019-02-25 09:39:24 +00:00
|
|
|
index 2c4465fff..95fe3a91b 100644
|
2018-09-22 15:32:38 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -296,7 +296,7 @@ public class CraftWorld implements World {
|
2018-09-22 15:32:38 +00:00
|
|
|
public boolean loadChunk(int x, int z, boolean generate) {
|
|
|
|
org.spigotmc.AsyncCatcher.catchOp( "chunk load"); // Spigot
|
|
|
|
chunkLoadCount++;
|
2018-12-17 05:18:06 +00:00
|
|
|
- return world.getChunkProvider().getChunkAt(x, z, true, generate) != null;
|
|
|
|
+ return world.getChunkProvider().getChunkAt(x, z, true, generate || isChunkGenerated(x, z)) != null; // Paper
|
2018-09-22 15:32:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isChunkLoaded(Chunk chunk) {
|
|
|
|
--
|
2019-03-20 00:28:15 +00:00
|
|
|
2.21.0
|
2018-09-22 15:32:38 +00:00
|
|
|
|