diff --git a/src/core/utils/terrain/world_settings.js b/src/core/utils/terrain/world_settings.js index 74a5250a..1f299ff0 100644 --- a/src/core/utils/terrain/world_settings.js +++ b/src/core/utils/terrain/world_settings.js @@ -17,7 +17,14 @@ import { BLOCKS, SCHEMATICS_BLOCKS } from './blocks.js' export const hex_to_int = hex => parseInt(hex.replace('#', ''), 16) // Extract unique colors from block definitions -const unique_block_colors = [...new Set(Object.values(BLOCKS))] +const unique_block_colors = [ + ...new Set( + Object.values({ + ...BLOCKS, + ...SCHEMATICS_BLOCKS, + }), + ), +] // Generate new block type entries for each unique color const additional_block_types = unique_block_colors.reduce(