From d916540fc5a22f97010344097dd0803643c7c63d Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:59:02 +0500 Subject: [PATCH] - Fix recipe unlocking (#234) --- .../recipes/types/base types/unlock.json | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/source/behavior/recipes/types/base types/unlock.json b/source/behavior/recipes/types/base types/unlock.json index eff07084..e70dfbe0 100644 --- a/source/behavior/recipes/types/base types/unlock.json +++ b/source/behavior/recipes/types/base types/unlock.json @@ -1,22 +1,10 @@ { - "title": "Item", + "title": "Unlock", "$id": "blockception.minecraft.behavior.recipe.unlock", "description": "Unlock achievement", - "type": "object", - "required": ["context"], "definitions": { "item": { "oneOf": [ - { - "required": ["context"], - "properties": { - "context": { - "type": "string", - "title": "Context", - "description": "The context of the achievement to unlock" - } - } - }, { "required": ["item"], "properties": { @@ -50,7 +38,14 @@ "oneOf": [ { "type": "object", - "$ref": "#/definitions/item" + "required": ["context"], + "properties": { + "context": { + "type": "string", + "title": "Context", + "description": "The context of the achievement to unlock" + } + } }, { "type": "array", @@ -59,4 +54,4 @@ } } ] -} +} \ No newline at end of file