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 546ffffdc0
commit 54471c6695
4 changed files with 22 additions and 29 deletions

View file

@ -57,7 +57,7 @@ public class MapChunkCache118 extends GenericMapChunkCache {
if (nbt != null) {
String stat = nbt.l("Status");
ChunkStatus cs = ChunkStatus.a(stat);
if ((stat != null) && cs.b(ChunkStatus.l)) { // ChunkStatus.LIGHT
if ((stat != null) && (cs.b(ChunkStatus.l) || (cs == ChunkStatus.c))) { // ChunkStatus.LIGHT OR ChunkStatus.EMPTY (migrated use this for some reason)
return true;
}
}