Skip to content

Commit e02cd2f

Browse files
committed
Fix #144
1 parent 6fc75a2 commit e02cd2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resourcePackExporter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export async function exportResources(
121121
// Clean up content
122122
content.animated_java ??= { rigs: {} }
123123
content.animated_java.rigs ??= {}
124+
content.overrides = content.overrides.filter(o => o.predicate.custom_model_data !== 1)
124125
// Merge with existing predicate file
125126
console.log('Merging with existing predicate file')
126127
console.log(content)
@@ -137,8 +138,9 @@ export async function exportResources(
137138
}
138139
}
139140

141+
if (!usedIds.includes(1)) usedIds.push(1)
140142
content.overrides.push({
141-
predicate: { custom_model_data: CustomModelData.get() },
143+
predicate: { custom_model_data: 1 },
142144
model: 'item/animated_java_empty',
143145
})
144146

0 commit comments

Comments
 (0)