Use default sheep color if null, part 2. Fixes #1212

This commit is contained in:
PikaMug 2020-04-17 02:55:02 -04:00
parent 17ee93d7e8
commit 4523067f35

View File

@ -2593,10 +2593,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
List<Integer> shearAmounts = config.getIntegerList("quests." + questKey + ".stages.ordered."
+ stageNum + ".sheep-amounts");
for (String color : sheep) {
DyeColor dc = null;
if (color.equalsIgnoreCase("NULL")) {
color = "WHITE";
dc = DyeColor.WHITE;
}
DyeColor dc = MiscUtil.getProperDyeColor(color);
try {
if (dc == null) {
dc = DyeColor.valueOf(color.toUpperCase());