Sfoglia il codice sorgente

Replace ingredient strings correctly

Fixes #1789
TfT_02 11 anni fa
parent
commit
4e86f60fd2

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

@@ -72,10 +72,10 @@ public class AlchemyManager extends SkillManager {
         String list = "";
         for (ItemStack ingredient : getIngredients()) {
             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";
             }
-            else if (string.equals("RAW_FISH:3")) {
+            else if (string.equals("Raw Fish:3")) {
                 string = "Pufferfish";
             }