Removed debug messages

This commit is contained in:
Aria 2019-10-09 20:22:06 +02:00
parent c08282b8e1
commit c2ee03f3ce
2 changed files with 1 additions and 5 deletions

View File

@ -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();
}

View File

@ -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());
}