Avoid rendering incompletely generated chunks

This commit is contained in:
Mike Primm 2019-06-05 21:32:31 -05:00
parent a2af65add6
commit 82de1b6899
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package org.dynmap.bukkit.helper.v114_1;
import org.bukkit.block.Biome;
import org.bukkit.craftbukkit.libs.jline.internal.Log;
import org.bukkit.craftbukkit.v1_14_R1.CraftWorld;
import java.io.IOException;
@ -304,6 +305,12 @@ public class MapChunkCache114_1 extends AbstractMapChunkCache {
}
if (nbt != null) {
nbt = nbt.getCompound("Level");
if (nbt != null) {
String stat = nbt.getString("Status");
if ((stat == null) || (stat.equals("full") == false)) {
nbt = null;
}
}
}
return nbt;
}

View File

@ -304,6 +304,12 @@ public class MapChunkCache114 extends AbstractMapChunkCache {
}
if (nbt != null) {
nbt = nbt.getCompound("Level");
if (nbt != null) {
String stat = nbt.getString("Status");
if ((stat == null) || (stat.equals("full") == false)) {
nbt = null;
}
}
}
return nbt;
}