Skip to content

Commit c6539b6

Browse files
Fix Region ClassInfo canParse impl
Fixes #11
1 parent c7f43a5 commit c6539b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/skriptlang/skriptworldguard/RegionClasses.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public RegionClasses() {
5252

5353
@Override
5454
public boolean canParse(@NotNull ParseContext context) {
55-
return true;
55+
return context == ParseContext.EVENT || context == ParseContext.COMMAND;
5656
}
5757

5858
@Override

0 commit comments

Comments
 (0)