File tree Expand file tree Collapse file tree
src/formats/blueprint/versions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ export default function upgrade(model: any): IBlueprintFormatJSON {
66
77 // Split brightness override into separate sky and block brightness values.
88 for ( const group of fixed . groups ?? [ ] ) {
9- if ( group . configs ?. default ) upgradeConfig ( group . configs . default )
10- for ( const config of Object . values ( group . configs . variants ?? { } ) as any ) {
9+ if ( group . configs ?. default ) upgradeConfig ( group . configs ? .default )
10+ for ( const config of Object . values ( group . configs ? .variants ?? { } ) as any ) {
1111 upgradeConfig ( config )
1212 }
1313 }
1414 for ( const element of fixed . elements ?? [ ] ) {
15- if ( element . configs ?. default ) upgradeConfig ( element . configs . default )
16- for ( const config of Object . values ( element . configs . variants ?? { } ) as any ) {
15+ if ( element . configs ?. default ) upgradeConfig ( element . configs ? .default )
16+ for ( const config of Object . values ( element . configs ? .variants ?? { } ) as any ) {
1717 upgradeConfig ( config )
1818 }
1919 }
You can’t perform that action at this time.
0 commit comments