mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-26 12:35:23 +01:00
Actually fix unmarshalling of region group flags.
This commit is contained in:
parent
db70e6f346
commit
03cf9a668b
@ -142,9 +142,9 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
|
||||
String parentName = entry.getKey().replaceAll("-group", "");
|
||||
Flag<?> parent = get(parentName);
|
||||
if (parent == null || parent instanceof UnknownFlag) {
|
||||
forceRegister(new UnknownFlag(entry.getKey()));
|
||||
if (createUnknown) forceRegister(new UnknownFlag(entry.getKey()));
|
||||
} else {
|
||||
parent.getRegionGroupFlag().unmarshal(entry.getValue());
|
||||
values.put(parent.getRegionGroupFlag(), parent.getRegionGroupFlag().unmarshal(entry.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user