Skip to content

Commit

Permalink
Use ticking thread method instead main thread method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeinerLP committed Sep 19, 2023
1 parent 7f1765e commit a7d2112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ public void handleCommand(CommandEvent event) {
Command cmd = optional.get();
PermissionCondition queued = cmd.getCondition().as(PermissionCondition.class).orElse(null);
if (queued != null && !queued.isQueued()) {
TaskManager.taskManager().taskNow(() -> handleCommandOnCurrentThread(event), Fawe.isMainThread());
TaskManager.taskManager().taskNow(() -> handleCommandOnCurrentThread(event), Fawe.isTickThread());
return;
} else {
actor.decline();
Expand Down

0 comments on commit a7d2112

Please sign in to comment.