Fix an error if the server is starting with bluemap and newly generated worlds

This commit is contained in:
Blue (Lukas Rieger) 2019-11-25 11:00:32 +01:00
parent e5df42faa3
commit e4daeebecf

View File

@ -174,7 +174,7 @@ public Block getBlock(Vector3i pos) throws ChunkNotGeneratedException {
private BlockState getExtendedBlockState(Chunk chunk, Vector3i pos) throws ChunkNotGeneratedException {
BlockState blockState = chunk.getBlockState(pos);
if (chunk instanceof ChunkAnvil112) { // only use extensions if old format chunk (1.12) in the new format block-states are saved witch extensions
if (chunk instanceof ChunkAnvil112) { // only use extensions if old format chunk (1.12) in the new format block-states are saved with extensions
for (BlockStateExtension ext : BLOCK_STATE_EXTENSIONS.get(blockState.getFullId())) {
blockState = ext.extend(this, pos, blockState);
}