Skip to content

Commit 0a02f44

Browse files
committed
disable TaskExecutor
it causes to remove local variables earlier than expected, anywhere in Skript.
1 parent e3a5a6b commit 0a02f44

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/gg/projects/mundoskasync/EffWaitAsync.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public TriggerItem walk(Event e) {
5454
return null;
5555
}
5656

57-
5857
@Override
5958
public String toString(Event e, boolean debug) {
6059
return "async wait " + delay.toString(e, debug);
6160
}
62-
}
61+
62+
}

src/main/java/gg/projects/mundoskasync/Scheduling.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public static void sync(Runnable runnable) {
1212
}
1313

1414
public static void async(Runnable runnable) {
15-
//scheduler.runTaskAsynchronously(MundoSKAsync.getInstance(), runnable);
16-
TaskExecutor.executeAsync(runnable);
15+
scheduler.runTaskAsynchronously(MundoSKAsync.getInstance(), runnable);
16+
//TaskExecutor.executeAsync(runnable);
17+
// ^ This causes to remove local variables early even not with async calls. idk why
1718
}
1819

1920
public static void syncDelay(long ticks, Runnable runnable) {

0 commit comments

Comments
 (0)