瀏覽代碼

Replace ingredient strings correctly

Fixes #1789
TfT_02 11 年之前
父節點
當前提交
4e86f60fd2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyManager.java

+ 2 - 2
src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyManager.java

@@ -72,10 +72,10 @@ public class AlchemyManager extends SkillManager {
         String list = "";
         String list = "";
         for (ItemStack ingredient : getIngredients()) {
         for (ItemStack ingredient : getIngredients()) {
             String string = StringUtils.getPrettyItemString(ingredient.getType()) + (ingredient.getDurability() != 0 ? ":" + ingredient.getDurability() : "");
             String string = StringUtils.getPrettyItemString(ingredient.getType()) + (ingredient.getDurability() != 0 ? ":" + ingredient.getDurability() : "");
-            if (string.equals("LONG_GRASS:2")) {
+            if (string.equals("Long Grass:2")) {
                 string = "Fern";
                 string = "Fern";
             }
             }
-            else if (string.equals("RAW_FISH:3")) {
+            else if (string.equals("Raw Fish:3")) {
                 string = "Pufferfish";
                 string = "Pufferfish";
             }
             }