Skip to content

Commit 83faf30

Browse files
committed
Execute tasks in Sync cause Bukkit is poo
1 parent c7a9c47 commit 83faf30

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
Binary file not shown.
0 Bytes
Binary file not shown.

src/main/java/dev/arctic/interactivemenuapi/objects/Menu.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void startRunnableUpdateGUI() {
6767
public void run() {
6868
updateMenuLocation();
6969
}
70-
}.runTaskTimerAsynchronously(plugin, 2L, 5L); // Update every 5 ticks
70+
}.runTaskTimer(plugin, 2L, 5L); // Update every 5 ticks
7171
}
7272

7373
public void startCleanupTask() {
@@ -80,7 +80,7 @@ public void run() {
8080
this.cancel();
8181
}
8282
}
83-
}.runTaskTimerAsynchronously(plugin, 2L, 20L); // Check every second
83+
}.runTaskTimer(plugin, 2L, 20L); // Check every second
8484
}
8585

8686
public void clearMenu() {

0 commit comments

Comments
 (0)