mirror of
https://github.com/CodeMC/WorldGuardWrapper.git
synced 2024-11-10 05:05:20 +01:00
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);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user