mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix default flags NPE
This commit is contained in:
parent
f651607d2f
commit
3558105789
@ -346,7 +346,7 @@ public class FlagManager {
|
||||
} else {
|
||||
split = key.split(":");
|
||||
}
|
||||
Flag<?> flag = getFlag(split[0]);
|
||||
Flag<?> flag = getOrCreateFlag(split[0]);
|
||||
Object value = flag.parseValue(split[1]);
|
||||
map.put(flag, value);
|
||||
}
|
||||
|
@ -149,8 +149,8 @@ public final class Flags {
|
||||
}
|
||||
|
||||
public static Flag<?> getFlag(String flag) {
|
||||
return flags.get(flag);
|
||||
}
|
||||
return flags.get(flag);
|
||||
}
|
||||
|
||||
public static void registerFlag(final Flag<?> flag) {
|
||||
final Flag<?> duplicate = flags.put(flag.getName(), flag);
|
||||
|
Loading…
Reference in New Issue
Block a user