Skip to content

Commit

Permalink
[1.10.0]修复无序配方无法正确创建的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Jun 15, 2024
1 parent 3492ec7 commit 023a71c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public ShapelessRecipeRegistry setChoiceList(List<RecipeChoice> choiceList) {
}

@Override
public ShapedRecipeRegistry setCraftingBookCategory(CraftingBookCategory craftingBookCategory) {
return (ShapedRecipeRegistry) super.setCraftingBookCategory(craftingBookCategory);
public ShapelessRecipeRegistry setCraftingBookCategory(CraftingBookCategory craftingBookCategory) {
return (ShapelessRecipeRegistry) super.setCraftingBookCategory(craftingBookCategory);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/recipes/example_shaped.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#配方的类型,一共有shaped(有序)、shapeless(无序)、cooking(烧炼)、smithing(锻造)、stone_cutting(切石机)、random_cooking(随机烧炼)
type: 'shaped'
#配方的结果,使用items:<file_name>:<item_name>格式可以调用插件保存的物品
result: 'items:example_item:example_item'
result: 'diamond_sword'
#是否多种合成方式
multiple: true
#配方的形状
Expand All @@ -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配置项
Expand Down

0 comments on commit 023a71c

Please sign in to comment.