Avoid rendering incompletely generated chunks

This commit is contained in:
Mike Primm 2019-06-05 21:32:31 -05:00
parent 7e7e2aa980
commit 6b4e7a205f
2 changed files with 13 additions and 0 deletions

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;
}