mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
Fix initialization of GlobalFlagContainer
This commit is contained in:
parent
2a84ae102e
commit
161bf3db23
@ -83,7 +83,7 @@ import java.util.Map;
|
|||||||
public final class GlobalFlagContainer extends FlagContainer {
|
public final class GlobalFlagContainer extends FlagContainer {
|
||||||
|
|
||||||
@Getter private static final GlobalFlagContainer instance = new GlobalFlagContainer();
|
@Getter private static final GlobalFlagContainer instance = new GlobalFlagContainer();
|
||||||
private static Map<String, Class<?>> stringClassMap = new HashMap<>();
|
private static Map<String, Class<?>> stringClassMap;
|
||||||
|
|
||||||
private GlobalFlagContainer() {
|
private GlobalFlagContainer() {
|
||||||
super(null, (flag, type) -> {
|
super(null, (flag, type) -> {
|
||||||
@ -91,6 +91,7 @@ public final class GlobalFlagContainer extends FlagContainer {
|
|||||||
stringClassMap.put(flag.getName().toLowerCase(Locale.ENGLISH), flag.getClass());
|
stringClassMap.put(flag.getName().toLowerCase(Locale.ENGLISH), flag.getClass());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
stringClassMap = new HashMap<>();
|
||||||
// Register all default flags here
|
// Register all default flags here
|
||||||
// Boolean flags
|
// Boolean flags
|
||||||
this.addFlag(ExplosionFlag.EXPLOSION_FALSE);
|
this.addFlag(ExplosionFlag.EXPLOSION_FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user