Skip to content

Commit ff6ec3e

Browse files
Fix inverted "can build" negation
1 parent a7bfd7f commit ff6ec3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/skriptlang/skriptworldguard/elements/conditions/CondCanBuildInRegions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
if the player cannot build at the targeted block:
3232
message "<red>You do not have permission to modify your targeted block!"
3333
else:
34-
set the targeted block to the first argument
34+
set the targeted block to the material-argument
3535
""")
3636
@Since("1.0")
3737
public class CondCanBuildInRegions extends Condition {
@@ -61,7 +61,7 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
6161
//noinspection unchecked
6262
regions = (Expression<WorldGuardRegion>) exprs[3];
6363
}
64-
setNegated(matchedPattern % 2 == 0);
64+
setNegated(matchedPattern % 2 == 1);
6565
return true;
6666
}
6767

0 commit comments

Comments
 (0)