mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-19 14:01:22 +01:00
Deal with spaces in sheep colors
This commit is contained in:
parent
7da6ea4b97
commit
43e2044b98
@ -3147,11 +3147,12 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
+ stageNum + ".sheep-to-shear");
|
||||
final List<Integer> shearAmounts = config.getIntegerList("quests." + questKey
|
||||
+ ".stages.ordered." + stageNum + ".sheep-amounts");
|
||||
for (final String color : sheep) {
|
||||
for (String color : sheep) {
|
||||
DyeColor dc = null;
|
||||
if (color.equalsIgnoreCase("NULL")) {
|
||||
dc = DyeColor.WHITE;
|
||||
}
|
||||
color = color.replace(" ", "_");
|
||||
try {
|
||||
if (dc == null) {
|
||||
for (final DyeColor val : DyeColor.values()) {
|
||||
|
Loading…
Reference in New Issue
Block a user