mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-07 19:39:47 +01:00
Fixed CSV->YAML conversion.
This commit is contained in:
parent
9322eedb4e
commit
762b10cb17
@ -262,7 +262,11 @@ private void parseFlags(ProtectedRegion region, String data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StateFlag flag = DefaultFlag.getLegacyFlag(flagStr);
|
StateFlag flag = DefaultFlag.getLegacyFlag(flagStr);
|
||||||
region.setFlag(flag, curState);
|
if (flag != null) {
|
||||||
|
region.setFlag(flag, curState);
|
||||||
|
} else {
|
||||||
|
logger.warning("Legacy flag '" + flagStr + "' is unsupported");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ public static Flag<?>[] getFlags() {
|
|||||||
*/
|
*/
|
||||||
public static StateFlag getLegacyFlag(String flagString) {
|
public static StateFlag getLegacyFlag(String flagString) {
|
||||||
for (Flag<?> flag : flagsList) {
|
for (Flag<?> flag : flagsList) {
|
||||||
if (flag instanceof StateFlag && flagString.equals(flag.getLegacyCode())) {
|
if (flag instanceof StateFlag && flagString.equals(String.valueOf(flag.getLegacyCode()))) {
|
||||||
return (StateFlag) flag;
|
return (StateFlag) flag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user