mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Use default sheep color if null, part 2. Fixes #1212
This commit is contained in:
parent
17ee93d7e8
commit
4523067f35
@ -2593,10 +2593,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
List<Integer> shearAmounts = config.getIntegerList("quests." + questKey + ".stages.ordered."
|
List<Integer> shearAmounts = config.getIntegerList("quests." + questKey + ".stages.ordered."
|
||||||
+ stageNum + ".sheep-amounts");
|
+ stageNum + ".sheep-amounts");
|
||||||
for (String color : sheep) {
|
for (String color : sheep) {
|
||||||
|
DyeColor dc = null;
|
||||||
if (color.equalsIgnoreCase("NULL")) {
|
if (color.equalsIgnoreCase("NULL")) {
|
||||||
color = "WHITE";
|
dc = DyeColor.WHITE;
|
||||||
}
|
}
|
||||||
DyeColor dc = MiscUtil.getProperDyeColor(color);
|
|
||||||
try {
|
try {
|
||||||
if (dc == null) {
|
if (dc == null) {
|
||||||
dc = DyeColor.valueOf(color.toUpperCase());
|
dc = DyeColor.valueOf(color.toUpperCase());
|
||||||
|
Loading…
Reference in New Issue
Block a user