From fcf6b084d292ce6156338afc6042d2b870861ce8 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Fri, 16 Mar 2012 14:26:15 +0100 Subject: [PATCH] still v1.0.1: - bypassing downgrade issue (unknown flags in regions.yml) --- .../jaschastarke/minecraft/worldguard/CRegionManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/jaschastarke/minecraft/worldguard/CRegionManager.java b/src/de/jaschastarke/minecraft/worldguard/CRegionManager.java index 568167d..031e9ba 100644 --- a/src/de/jaschastarke/minecraft/worldguard/CRegionManager.java +++ b/src/de/jaschastarke/minecraft/worldguard/CRegionManager.java @@ -122,8 +122,10 @@ public class CRegionManager { ConfigurationSection fs = rs.getConfigurationSection("flags"); for (Map.Entry data : fs.getValues(false).entrySet()) { Flag flag = FlagList.getFlag(data.getKey()); - Object value = flag.unmarshal(data.getValue()); - list.add(new FlagValue(flag, value)); + if (flag != null) { + Object value = flag.unmarshal(data.getValue()); + list.add(new FlagValue(flag, value)); + } } } }