From 7251e1d47c290f72f80cff6604cf225067c4819f Mon Sep 17 00:00:00 2001 From: BerndiVader Date: Sun, 10 Jan 2021 00:36:20 +0100 Subject: [PATCH] fix for #78 wgstateflag dont act like worldguardflag --- gradle.properties | 2 +- .../compatibility/worldguard/WorldGuardStateFlagCondition.java | 2 +- .../mythicmobsext/compatibility/worldguard/WorldGuardUtils.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 61ff7cd6..71d11f96 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ #Sat Jan 09 23:54:06 CET 2021 appName=MythicMobsExtension artbuild=4815 -artver=1.737-SNAPSHOT +artver=1.737a-SNAPSHOT diff --git a/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardStateFlagCondition.java b/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardStateFlagCondition.java index d5c5bde0..cea68a80 100644 --- a/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardStateFlagCondition.java +++ b/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardStateFlagCondition.java @@ -21,7 +21,7 @@ public WorldGuardStateFlagCondition(String line, MythicLineConfig mlc) { @Override public boolean check(AbstractLocation location) { - boolean b = WorldGuardUtils.checkRegionStateFlagAtLocation(BukkitAdapter.adapt(location), flagName); + boolean b = WorldGuardUtils.checkRegionStateFlagAtLocation(BukkitAdapter.adapt(location), flagName,ACTION.toString().toLowerCase()); if (this.debug) Main.logger.info("wgstateflag outcome: " + b); return b; diff --git a/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardUtils.java b/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardUtils.java index c0788f0a..8021c708 100644 --- a/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardUtils.java +++ b/src/main/java/com/gmail/berndivader/mythicmobsext/compatibility/worldguard/WorldGuardUtils.java @@ -83,7 +83,7 @@ public static boolean checkFlagAtLocation(Location location, String flag_name, S return bl1; } - public static boolean checkRegionStateFlagAtLocation(Location l, String f) { + public static boolean checkRegionStateFlagAtLocation(Location l, String f, String action) { return checkFlagAtLocation(l, f, ""); }