From cf9c3e464b756d08cbf089155eb944dabf2d49e2 Mon Sep 17 00:00:00 2001 From: NCT_skyouo Date: Sun, 29 Sep 2024 23:50:44 +0800 Subject: [PATCH] fix: change bukkit scheduler to universal one --- .../unnamed/creative/central/bukkit/CreativeCentralPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/team/unnamed/creative/central/bukkit/CreativeCentralPlugin.java b/bukkit/src/main/java/team/unnamed/creative/central/bukkit/CreativeCentralPlugin.java index 840e8d8..2930182 100644 --- a/bukkit/src/main/java/team/unnamed/creative/central/bukkit/CreativeCentralPlugin.java +++ b/bukkit/src/main/java/team/unnamed/creative/central/bukkit/CreativeCentralPlugin.java @@ -212,7 +212,7 @@ private void generateFirstLoad() { if (awaitingProviders.isEmpty()) { // do not wait for anything - Bukkit.getScheduler().runTaskLater(this, () -> { + ScheduleUtil.GLOBAL.runTaskLater(this, () -> { this.generate().whenComplete((pack, throwable) -> { if (throwable != null) { getLogger().log(Level.SEVERE, "Error while generating resource pack", throwable);