Avoid rendering incompletely generated chunks
This commit is contained in:
parent
7e7e2aa980
commit
6b4e7a205f
2 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue