Copy light data (cannot trust NBT data returned to be stable....)

This commit is contained in:
Mike Primm 2020-05-19 12:38:16 -05:00
parent 569cac591c
commit 45ce494e41
1 changed files with 5 additions and 7 deletions

View File

@ -212,13 +212,11 @@ public class MapChunkCache115 extends AbstractMapChunkCache {
states[j] = (v < palette.length) ? palette[v] : DynmapBlockState.AIR;
}
}
}
if (sec.hasKey("BlockLight")) {
cursect.emitlight = sec.getByteArray("BlockLight");
}
if (sec.hasKey("SkyLight")) {
cursect.skylight = sec.getByteArray("SkyLight");
}
}
byte[] emitlight = sec.getByteArray("BlockLight");
cursect.emitlight = (emitlight == null) ? emptyData : emitlight.clone();
byte[] skylight = sec.getByteArray("SkyLight");
cursect.skylight = (skylight == null) ? fullData : skylight.clone();
}
/* Get biome data */
this.biome = new int[COLUMNS_PER_CHUNK];