From e65fef8c38fb0b96cdcee93bda92acbaad2a4373 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 30 Mar 2024 15:09:13 +0100 Subject: [PATCH] Fix attribute component UUID --- java/1.20.5/package.json | 2 +- java/1.20.5/src/schemas/Components.ts | 5 ++++- package-lock.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java/1.20.5/package.json b/java/1.20.5/package.json index 0e5e9e2..da36390 100644 --- a/java/1.20.5/package.json +++ b/java/1.20.5/package.json @@ -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", diff --git a/java/1.20.5/src/schemas/Components.ts b/java/1.20.5/src/schemas/Components.ts index 9132b1a..35cba75 100644 --- a/java/1.20.5/src/schemas/Components.ts +++ b/java/1.20.5/src/schemas/Components.ts @@ -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' }), diff --git a/package-lock.json b/package-lock.json index eb949f4..779692e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -115,7 +115,7 @@ }, "java/1.20.5": { "name": "@mcschema/java-1.20.5", - "version": "0.0.15", + "version": "0.0.16", "license": "MIT", "dependencies": { "@mcschema/core": "^0.13.0"