forked from clone/WorldGuardWrapper
Fix unsupported flag types in queryApplicableFlags
Co-Authored-By: Luck <lucko@users.noreply.github.com>
This commit is contained in:
parent
ab5ec54e98
commit
4ea70913c5
|
@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
|
|||
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
|
||||
flags.put(wrapped.getKey(), wrapped.getValue());
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null; // Unsupported flag type
|
||||
continue; // Unsupported flag type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
|
|||
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
|
||||
flags.put(wrapped.getKey(), wrapped.getValue());
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null; // Unsupported flag type
|
||||
continue; // Unsupported flag type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
|
|||
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
|
||||
flags.put(wrapped.getKey(), wrapped.getValue());
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null; // Unsupported flag type
|
||||
continue; // Unsupported flag type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user