Skip to content

Commit

Permalink
Fix attribute component UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Mar 30, 2024
1 parent 90de455 commit e65fef8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/1.20.5/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mcschema/java-1.20.5",
"version": "0.0.15",
"version": "0.0.16",
"description": "Schemas for Java Edition 1.20.5",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion java/1.20.5/src/schemas/Components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export function initComponentsSchemas(schemas: SchemaRegistry, collections: Coll

schemas.register('attribute_modifiers_entry', ObjectNode({
type: StringNode({ validator: 'resource', params: { pool: 'attribute' } }),
uuid: StringNode({ validator: 'uuid' }),
uuid: ListNode(
NumberNode({ integer: true }),
{ minLength: 4, maxLength: 4 },
),
name: StringNode(),
amount: NumberNode(),
operation: StringNode({ enum: 'attribute_modifier_operation' }),
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 e65fef8

Please sign in to comment.