We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f40bf4 commit 2f1a93bCopy full SHA for 2f1a93b
src/main/java/com/sovdee/skriptparticles/elements/expressions/constructors/ExprLine.java
@@ -155,8 +155,8 @@ protected Line[] get(Event event) {
155
public boolean isSingle() {
156
return switch (matchedPattern) {
157
case 0 -> end.isSingle() && start.isSingle();
158
- case 1 -> true;
159
- default -> false;
+ case 1, 2 -> true;
+ default -> throw new IllegalStateException("invalid pattern " + matchedPattern);
160
};
161
}
162
0 commit comments