Skip to content

Commit

Permalink
Fix MenuHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Jul 10, 2024
1 parent 48c78c5 commit 1163bca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void refreshMenu() {

stopPlaceholderUpdate();

Bukkit.getScheduler().runTaskAsynchronously(DeluxeMenus.getInstance(), () -> {
Bukkit.getAsyncScheduler().runNow(DeluxeMenus.getInstance(), (scheduledTask) -> {

final Set<MenuItem> active = new HashSet<>();

Expand Down Expand Up @@ -176,7 +176,7 @@ public void refreshMenu() {
Menu.closeMenu(getViewer(), true);
}

Bukkit.getScheduler().runTask(DeluxeMenus.getInstance(), () -> {
getViewer().getScheduler().run(DeluxeMenus.getInstance(), (scheduledTask1) -> {

boolean update = false;

Expand Down Expand Up @@ -204,7 +204,7 @@ public void refreshMenu() {
}

setUpdating(false);
});
}, null);
});
}

Expand Down

0 comments on commit 1163bca

Please sign in to comment.