Skip to content

Commit

Permalink
[2.0.0-dev12]修复配方名字大小写导致无法正确注册的bug,修复物品nbt无法正确读取数字类型nbt的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Jan 19, 2024
1 parent c4ccab8 commit a56f5a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private static List<RandomCookingRecipeRegistry.RandomCookingResult> getRandomRe
}

public static NamespacedKey generateRecipeKey(RecipeGroupParser loader, String recipeName) {
return new NamespacedKey(Craftorithm.instance(), loader.groupName + "." + recipeName);
return new NamespacedKey(Craftorithm.instance(), loader.groupName + "." + recipeName.toLowerCase());
}

public static boolean matchUnlock(ConfigurationSection configSection) {
Expand Down

0 comments on commit a56f5a0

Please sign in to comment.