Skip to content

Commit

Permalink
fix for #78 wgstateflag dont act like worldguardflag
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndiVader committed Jan 9, 2021
1 parent 5f27d95 commit 7251e1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sat Jan 09 23:54:06 CET 2021
appName=MythicMobsExtension
artbuild=4815
artver=1.737-SNAPSHOT
artver=1.737a-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
}

Expand Down

0 comments on commit 7251e1d

Please sign in to comment.