From 9bb60f0bb1ed7733a976a0a2e82c2fd0f6dea5b5 Mon Sep 17 00:00:00 2001 From: YufiriaMazenta Date: Wed, 25 Dec 2024 10:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86ItemManager=E7=9A=84=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9=E4=B8=BAACTIVE,=E4=BB=A5?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=85=B6=E4=BB=96=E6=8F=92=E4=BB=B6=E7=89=A9?= =?UTF-8?q?=E5=93=81hooker=E6=9C=AA=E6=B3=A8=E5=86=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 +- .../com/github/yufiriamazenta/craftorithm/Craftorithm.java | 2 +- .../github/yufiriamazenta/craftorithm/item/ItemManager.java | 4 ++-- .../yufiriamazenta/craftorithm/recipe/RecipeManager.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1b7c7510..28ccd82c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,5 @@ import java.text.SimpleDateFormat -version = "1.10.15-beta2" +version = "1.10.15-beta3" plugins { `java-library` diff --git a/src/main/java/com/github/yufiriamazenta/craftorithm/Craftorithm.java b/src/main/java/com/github/yufiriamazenta/craftorithm/Craftorithm.java index 3073a36d..6252d42f 100644 --- a/src/main/java/com/github/yufiriamazenta/craftorithm/Craftorithm.java +++ b/src/main/java/com/github/yufiriamazenta/craftorithm/Craftorithm.java @@ -28,7 +28,7 @@ @AutoTask( rules = { - @TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1), + @TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 2), @TaskRule(lifeCycle = LifeCycle.RELOAD) } ) diff --git a/src/main/java/com/github/yufiriamazenta/craftorithm/item/ItemManager.java b/src/main/java/com/github/yufiriamazenta/craftorithm/item/ItemManager.java index 8c979930..0ae635a1 100644 --- a/src/main/java/com/github/yufiriamazenta/craftorithm/item/ItemManager.java +++ b/src/main/java/com/github/yufiriamazenta/craftorithm/item/ItemManager.java @@ -29,7 +29,7 @@ @AutoTask( rules = { @TaskRule( - lifeCycle = LifeCycle.ENABLE, priority = 1 + lifeCycle = LifeCycle.ACTIVE, priority = 1 ), @TaskRule( lifeCycle = LifeCycle.RELOAD, priority = 1 @@ -201,7 +201,7 @@ public Map customCookingFuelMap() { @Override public void run(Plugin plugin, LifeCycle lifeCycle) { - if (lifeCycle.equals(LifeCycle.ENABLE)) + if (lifeCycle.equals(LifeCycle.ACTIVE)) regItemProvider(CraftorithmItemProvider.INSTANCE); reloadCustomCookingFuel(); } diff --git a/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/RecipeManager.java b/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/RecipeManager.java index 451750e6..4d36bc0c 100644 --- a/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/RecipeManager.java +++ b/src/main/java/com/github/yufiriamazenta/craftorithm/recipe/RecipeManager.java @@ -39,7 +39,7 @@ @AutoTask( rules = { - @TaskRule(lifeCycle = LifeCycle.ENABLE, priority = 2), + @TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1), @TaskRule(lifeCycle = LifeCycle.RELOAD, priority = 2) } ) @@ -482,7 +482,7 @@ private void saveDefConfigFile(List allFiles) { @Override public void run(Plugin plugin, LifeCycle lifeCycle) { - if (lifeCycle.equals(LifeCycle.ENABLE)) { + if (lifeCycle.equals(LifeCycle.ACTIVE)) { //设置各类型配方的注册方法 recipeRegisterMap.put(RecipeType.SHAPED, Bukkit::addRecipe); recipeRemoverMap.put(RecipeType.SHAPED, this::removeRecipes);