From 023a71c23dc4a3c607c20acc9b47a9b3c6c47919 Mon Sep 17 00:00:00 2001 From: YufiriaMazenta Date: Sat, 15 Jun 2024 10:30:47 +0800 Subject: [PATCH] =?UTF-8?q?[1.10.0]=E4=BF=AE=E5=A4=8D=E6=97=A0=E5=BA=8F?= =?UTF-8?q?=E9=85=8D=E6=96=B9=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recipe/registry/impl/ShapelessRecipeRegistry.java | 4 ++-- src/main/resources/recipes/example_shaped.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/registry/impl/ShapelessRecipeRegistry.java b/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/registry/impl/ShapelessRecipeRegistry.java index 976c771f..62209aee 100644 --- a/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/registry/impl/ShapelessRecipeRegistry.java +++ b/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/registry/impl/ShapelessRecipeRegistry.java @@ -31,8 +31,8 @@ public ShapelessRecipeRegistry setChoiceList(List choiceList) { } @Override - public ShapedRecipeRegistry setCraftingBookCategory(CraftingBookCategory craftingBookCategory) { - return (ShapedRecipeRegistry) super.setCraftingBookCategory(craftingBookCategory); + public ShapelessRecipeRegistry setCraftingBookCategory(CraftingBookCategory craftingBookCategory) { + return (ShapelessRecipeRegistry) super.setCraftingBookCategory(craftingBookCategory); } @Override diff --git a/src/main/resources/recipes/example_shaped.yml b/src/main/resources/recipes/example_shaped.yml index caf414a1..9169ad40 100644 --- a/src/main/resources/recipes/example_shaped.yml +++ b/src/main/resources/recipes/example_shaped.yml @@ -1,7 +1,7 @@ #配方的类型,一共有shaped(有序)、shapeless(无序)、cooking(烧炼)、smithing(锻造)、stone_cutting(切石机)、random_cooking(随机烧炼) type: 'shaped' #配方的结果,使用items::格式可以调用插件保存的物品 -result: 'items:example_item:example_item' +result: 'diamond_sword' #是否多种合成方式 multiple: true #配方的形状 @@ -15,7 +15,7 @@ shape: source: a: 'bedrock' b: 'command_block' - c: 'items:example_item:example_item' + c: 'diamond' d: 'barrier' e: 'chain_command_block' #是否在配方书中为玩家解锁此配方,默认为config.yml中的all_recipe_unlocked配置项