From c2ee03f3cee177a0f92b6887555a6b5f0cf8a78e Mon Sep 17 00:00:00 2001 From: Aria Date: Wed, 9 Oct 2019 20:22:06 +0200 Subject: [PATCH] Removed debug messages --- .../api/item/plugin/crafting/CraftingRecipeDisplay.java | 4 +--- .../mmoitems/comp/mmocore/crafting/ProfessionCondition.java | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/Indyuce/mmoitems/api/item/plugin/crafting/CraftingRecipeDisplay.java b/src/main/java/net/Indyuce/mmoitems/api/item/plugin/crafting/CraftingRecipeDisplay.java index 5a41fe0d..f0758826 100644 --- a/src/main/java/net/Indyuce/mmoitems/api/item/plugin/crafting/CraftingRecipeDisplay.java +++ b/src/main/java/net/Indyuce/mmoitems/api/item/plugin/crafting/CraftingRecipeDisplay.java @@ -80,10 +80,8 @@ public class CraftingRecipeDisplay extends ConfigItem { if (str.startsWith("#condition_")) { String format = str.substring("#condition_".length(), str.length() - 1); ConditionInfo info = recipe.getCondition(format); - if (info != null && info.getCondition().displays()) { - MMOItems.plugin.getLogger().info("Condition Things: " + info.getCondition().getId()); + if (info != null && info.getCondition().displays()) replace.put(str, info.getCondition().formatDisplay(info.isMet() ? info.getCondition().getDisplay().getPositive() : info.getCondition().getDisplay().getNegative())); - } else iterator.remove(); } diff --git a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/crafting/ProfessionCondition.java b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/crafting/ProfessionCondition.java index 5bd660a4..d6d040d0 100644 --- a/src/main/java/net/Indyuce/mmoitems/comp/mmocore/crafting/ProfessionCondition.java +++ b/src/main/java/net/Indyuce/mmoitems/comp/mmocore/crafting/ProfessionCondition.java @@ -5,7 +5,6 @@ import org.apache.commons.lang.Validate; import net.Indyuce.mmocore.MMOCore; import net.Indyuce.mmocore.api.experience.Profession; import net.Indyuce.mmocore.api.player.PlayerData; -import net.Indyuce.mmoitems.MMOItems; import net.Indyuce.mmoitems.api.crafting.ConditionalDisplay; import net.Indyuce.mmoitems.api.crafting.condition.Condition; import net.Indyuce.mmoitems.api.util.AltChar; @@ -37,7 +36,6 @@ public class ProfessionCondition extends Condition { @Override public String formatDisplay(String string) { - MMOItems.plugin.getLogger().info("Formatting"); return string.replace("#level#", "" + level).replace("#profession#", profession.getName()); }