mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Make CraftWorld#loadChunk(int, int, false) load unconverted chunks
This commit is contained in:
parent
48707f87ac
commit
b2edc41552
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
||||||
@Override
|
@Override
|
||||||
public boolean loadChunk(int x, int z, boolean generate) {
|
public boolean loadChunk(int x, int z, boolean generate) {
|
||||||
org.spigotmc.AsyncCatcher.catchOp("chunk load"); // Spigot
|
org.spigotmc.AsyncCatcher.catchOp("chunk load"); // Spigot
|
||||||
ChunkAccess chunk = this.world.getChunkSource().getChunk(x, z, generate ? ChunkStatus.FULL : ChunkStatus.EMPTY, true);
|
ChunkAccess chunk = this.world.getChunkSource().getChunk(x, z, generate || isChunkGenerated(x, z) ? ChunkStatus.FULL : ChunkStatus.EMPTY, true); // Paper
|
||||||
|
|
||||||
// If generate = false, but the chunk already exists, we will get this back.
|
// If generate = false, but the chunk already exists, we will get this back.
|
||||||
if (chunk instanceof ImposterProtoChunk) {
|
if (chunk instanceof ImposterProtoChunk) {
|
||||||
|
|
Loading…
Reference in a new issue