From 577726e48e137686ae2ff5daa738be9195e47a5a Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 4 Sep 2024 22:10:49 +0200 Subject: [PATCH] Fix StringNode usage --- java/1.21.2/src/schemas/TrialSpawner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/1.21.2/src/schemas/TrialSpawner.ts b/java/1.21.2/src/schemas/TrialSpawner.ts index 5af3855..d8d082b 100644 --- a/java/1.21.2/src/schemas/TrialSpawner.ts +++ b/java/1.21.2/src/schemas/TrialSpawner.ts @@ -1,5 +1,6 @@ import { Reference as RawReference, + StringNode as RawStringNode, ChoiceNode, ListNode, MapNode, @@ -7,7 +8,6 @@ import { ObjectNode, Opt, SchemaRegistry, - StringNode, CollectionRegistry, NumberNode } from '@mcschema/core' @@ -15,7 +15,7 @@ import { InclusiveRange } from './Common' export function initTrialSpawnerSchemas(schemas: SchemaRegistry, collections: CollectionRegistry) { const Reference = RawReference.bind(undefined, schemas) - + const StringNode = RawStringNode.bind(undefined, collections) schemas.register('light_limit', ChoiceNode([ {