mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 07:05:32 +01:00
Fix unknown group flag unmarshalling.
i.e. don't.
This commit is contained in:
parent
4b320ab733
commit
6e30f98322
@ -151,7 +151,6 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
|
||||
}
|
||||
}
|
||||
}
|
||||
RegionGroupFlag groupUnmarshaller = new RegionGroupFlag("unmarshaldummy", RegionGroup.NONE);
|
||||
for (Entry<String, Object> entry : regionFlags.entrySet()) {
|
||||
String parentName = entry.getKey().replaceAll("-group", "");
|
||||
Flag<?> parent = get(parentName);
|
||||
@ -162,7 +161,7 @@ public Map<Flag<?>, Object> unmarshal(Map<String, Object> rawValues, boolean cre
|
||||
}
|
||||
Flag<?> unk = get(entry.getKey());
|
||||
if (unk != null) {
|
||||
values.put(unk, groupUnmarshaller.unmarshal(entry.getValue()));
|
||||
values.put(unk, entry.getValue());
|
||||
}
|
||||
} else {
|
||||
values.put(parent.getRegionGroupFlag(), parent.getRegionGroupFlag().unmarshal(entry.getValue()));
|
||||
|
Loading…
Reference in New Issue
Block a user