Workaround bizarre 1.17->1.18 chunk lifecycle (Spigot, Fabric, Forge)

This commit is contained in:
Mike Primm 2021-12-15 20:40:06 -06:00
parent 3af5ac05e2
commit 28fd746248
4 changed files with 22 additions and 29 deletions

View file

@ -38,7 +38,7 @@ public class ForgeMapChunkCache extends GenericMapChunkCache {
if (nbt != null) {
String stat = nbt.getString("Status");
ChunkStatus cs = ChunkStatus.byName(stat);
if ((stat != null) && cs.isOrAfter(ChunkStatus.LIGHT)) { // ChunkStatus.LIGHT
if ((stat != null) && (cs.isOrAfter(ChunkStatus.LIGHT) || (cs == ChunkStatus.EMPTY))) { // ChunkStatus.LIGHT or migrated EMPTY
return true;
}
}