11import { MAX_PROGRESS , PROGRESS , PROGRESS_DESCRIPTION } from '../../interface/dialog/exportProgress'
22import { isResourcePackPath , toSafeFuntionName } from '../../util/minecraftUtil'
33import { Variant } from '../../variants'
4- import { IntentionalExportError } from '../exporter'
54import { IItemDefinition } from '../minecraft/itemDefinitions'
65import { type ITextureAtlas } from '../minecraft/textureAtlas'
76import { IRenderedNodes , IRenderedRig , IRenderedVariantModel } from '../rigRenderer'
@@ -219,12 +218,7 @@ function createSingleVariantItemDefinition(model: IRenderedVariantModel): IItemD
219218 model : {
220219 type : 'minecraft:model' ,
221220 model : model . resource_location ,
222- tints : [
223- {
224- type : 'minecraft:dye' ,
225- default : [ 1 , 1 , 1 ] ,
226- } ,
227- ] ,
221+ tints : [ new oneLiner ( { type : 'minecraft:dye' , default : [ 1 , 1 , 1 ] } ) ] ,
228222 } ,
229223 }
230224}
@@ -244,13 +238,8 @@ function createMultiVariantItemDefinition(
244238 fallback : {
245239 type : 'minecraft:model' ,
246240 model : model . resource_location ,
241+ tints : [ new oneLiner ( { type : 'minecraft:dye' , default : [ 1 , 1 , 1 ] } ) ] ,
247242 } ,
248- tints : [
249- {
250- type : 'minecraft:dye' ,
251- default : [ 1 , 1 , 1 ] ,
252- } ,
253- ] ,
254243 } ,
255244 }
256245
@@ -262,6 +251,7 @@ function createMultiVariantItemDefinition(
262251 model : {
263252 type : 'minecraft:model' ,
264253 model : variantModel . resource_location ,
254+ tints : [ new oneLiner ( { type : 'minecraft:dye' , default : [ 1 , 1 , 1 ] } ) ] ,
265255 } ,
266256 } as ( typeof itemDefinition . model . cases ) [ 0 ] )
267257 }
0 commit comments