Fix unsupported flag types in queryApplicableFlags

Co-Authored-By: Luck <lucko@users.noreply.github.com>
This commit is contained in:
Gabriele C 2020-06-08 18:22:41 +02:00
parent ab5ec54e98
commit 4ea70913c5
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
flags.put(wrapped.getKey(), wrapped.getValue()); flags.put(wrapped.getKey(), wrapped.getValue());
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
return null; // Unsupported flag type continue; // Unsupported flag type
} }
} }
} }

View File

@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
flags.put(wrapped.getKey(), wrapped.getValue()); flags.put(wrapped.getKey(), wrapped.getValue());
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
return null; // Unsupported flag type continue; // Unsupported flag type
} }
} }
} }

View File

@ -107,7 +107,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); Map.Entry<IWrappedFlag<?>, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value);
flags.put(wrapped.getKey(), wrapped.getValue()); flags.put(wrapped.getKey(), wrapped.getValue());
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
return null; // Unsupported flag type continue; // Unsupported flag type
} }
} }
} }