Skip to content

Commit

Permalink
Remove conditions field from sequence loot function
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Sep 5, 2024
1 parent c4e9cbc commit 788cf28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/1.21.2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.21.2",
"version": "0.0.6",
"version": "0.0.8",
"description": "Schemas for Java Edition 1.21.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion java/1.21.2/src/schemas/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ export function initCommonSchemas(schemas: SchemaRegistry, collections: Collecti
}
const res: NestedNodeChildren = {}
collections.get('loot_function_type').forEach(f => {
res[f] = {...cases[f], ...conditions }
res[f] = {...cases[f], ...(f === 'minecraft:sequence' ? {} : conditions) }
})
return res
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 788cf28

Please sign in to comment.