From 4ea70913c56765bf2d0bec2035d6483e27f57098 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Mon, 8 Jun 2020 18:22:41 +0200 Subject: [PATCH] Fix unsupported flag types in queryApplicableFlags Co-Authored-By: Luck --- .../implementation/legacy/WorldGuardImplementation.java | 2 +- .../implementation/v6/WorldGuardImplementation.java | 2 +- .../implementation/v7/WorldGuardImplementation.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/implementation/legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/WorldGuardImplementation.java b/implementation/legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/WorldGuardImplementation.java index fa28f13..45011b9 100644 --- a/implementation/legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/WorldGuardImplementation.java +++ b/implementation/legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/WorldGuardImplementation.java @@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation { Map.Entry, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); flags.put(wrapped.getKey(), wrapped.getValue()); } catch (IllegalArgumentException e) { - return null; // Unsupported flag type + continue; // Unsupported flag type } } } diff --git a/implementation/v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/WorldGuardImplementation.java b/implementation/v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/WorldGuardImplementation.java index 1bdbeb6..88f7265 100644 --- a/implementation/v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/WorldGuardImplementation.java +++ b/implementation/v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/WorldGuardImplementation.java @@ -103,7 +103,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation { Map.Entry, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); flags.put(wrapped.getKey(), wrapped.getValue()); } catch (IllegalArgumentException e) { - return null; // Unsupported flag type + continue; // Unsupported flag type } } } diff --git a/implementation/v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/WorldGuardImplementation.java b/implementation/v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/WorldGuardImplementation.java index 46fcc7b..200832e 100644 --- a/implementation/v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/WorldGuardImplementation.java +++ b/implementation/v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/WorldGuardImplementation.java @@ -107,7 +107,7 @@ public class WorldGuardImplementation implements IWorldGuardImplementation { Map.Entry, Object> wrapped = WorldGuardFlagUtilities.wrap(flag, value); flags.put(wrapped.getKey(), wrapped.getValue()); } catch (IllegalArgumentException e) { - return null; // Unsupported flag type + continue; // Unsupported flag type } } }