Skip to content

Commit 2c633f0

Browse files
committed
Update to 2.8 fully
1 parent f3c7dad commit 2c633f0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ compileJava {
3535

3636
dependencies {
3737
implementation 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
38-
implementation 'com.github.SkriptLang:Skript:2.7.1'
38+
implementation 'com.github.SkriptLang:Skript:2.8.0-pre1'
3939
implementation 'org.eclipse.jdt:org.eclipse.jdt.annotation:1.1.0'
4040
}

src/main/java/org/skriptlang/reflect/syntax/event/EventSyntaxInfo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package org.skriptlang.reflect.syntax.event;
22

3-
import ch.njol.skript.lang.SkriptEventInfo;
4-
import org.skriptlang.reflect.syntax.CustomSyntaxStructure;
53
import com.btk5h.skriptmirror.util.SkriptMirrorUtil;
4+
import org.skriptlang.reflect.syntax.CustomSyntaxStructure;
65
import org.skriptlang.skript.lang.script.Script;
76

87
import java.util.Objects;
@@ -14,7 +13,7 @@ protected EventSyntaxInfo(Script script, String pattern, int matchedPattern) {
1413
}
1514

1615
public static EventSyntaxInfo create(Script script, String pattern, int matchedPattern) {
17-
pattern = "[on] " + pattern + SkriptEventInfo.EVENT_PRIORITY_SYNTAX;
16+
pattern = "[on] " + pattern;
1817

1918
return new EventSyntaxInfo(script, SkriptMirrorUtil.preprocessPattern(pattern), matchedPattern);
2019
}

src/main/java/org/skriptlang/reflect/syntax/expression/elements/EffReturn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected TriggerItem walk(Event e) {
9797
if (parent instanceof SecLoop) {
9898
((SecLoop) parent).exit(e);
9999
} else if (parent instanceof SecWhile) {
100-
((SecWhile) parent).reset();
100+
((SecWhile) parent).exit(e);
101101
}
102102
parent = parent.getParent();
103103
}

0 commit comments

Comments
 (0)