mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 12:45:59 +01:00
Avoid rendering incompletely generated chunks
This commit is contained in:
parent
a2af65add6
commit
82de1b6899
@ -1,6 +1,7 @@
|
|||||||
package org.dynmap.bukkit.helper.v114_1;
|
package org.dynmap.bukkit.helper.v114_1;
|
||||||
|
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
|
import org.bukkit.craftbukkit.libs.jline.internal.Log;
|
||||||
import org.bukkit.craftbukkit.v1_14_R1.CraftWorld;
|
import org.bukkit.craftbukkit.v1_14_R1.CraftWorld;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -304,6 +305,12 @@ public class MapChunkCache114_1 extends AbstractMapChunkCache {
|
|||||||
}
|
}
|
||||||
if (nbt != null) {
|
if (nbt != null) {
|
||||||
nbt = nbt.getCompound("Level");
|
nbt = nbt.getCompound("Level");
|
||||||
|
if (nbt != null) {
|
||||||
|
String stat = nbt.getString("Status");
|
||||||
|
if ((stat == null) || (stat.equals("full") == false)) {
|
||||||
|
nbt = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nbt;
|
return nbt;
|
||||||
}
|
}
|
||||||
|
@ -304,6 +304,12 @@ public class MapChunkCache114 extends AbstractMapChunkCache {
|
|||||||
}
|
}
|
||||||
if (nbt != null) {
|
if (nbt != null) {
|
||||||
nbt = nbt.getCompound("Level");
|
nbt = nbt.getCompound("Level");
|
||||||
|
if (nbt != null) {
|
||||||
|
String stat = nbt.getString("Status");
|
||||||
|
if ((stat == null) || (stat.equals("full") == false)) {
|
||||||
|
nbt = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nbt;
|
return nbt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user