Merge pull request #295 from InflamedSebi/QualityCmds

Add Quality sensitivity for player and server commands
This commit is contained in:
Sn0wStorm
2020-11-09 13:41:51 +01:00
committed by GitHub
3 changed files with 126 additions and 57 deletions
@@ -1,6 +1,7 @@
package com.dre.brewery.recipe;
import com.dre.brewery.P;
import com.dre.brewery.utility.StringParser;
import com.dre.brewery.utility.Tuple;
import org.bukkit.Color;
import org.bukkit.Material;
@@ -102,7 +103,7 @@ public class BCauldronRecipe {
}
List<Tuple<Integer,String>> lore = BRecipe.loadLore(cfg, id + ".lore");
List<Tuple<Integer,String>> lore = BRecipe.loadQualityStringList(cfg, id + ".lore", StringParser.loreParser);
if (lore != null && !lore.isEmpty()) {
recipe.lore = lore.stream().map(Tuple::second).collect(Collectors.toList());
}