From 35f7fc528267e8ee561e194a2b9d168ac7c2ce6d Mon Sep 17 00:00:00 2001 From: YufiriaMazenta Date: Wed, 25 Dec 2024 10:19:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=B3=E4=BA=86=E6=83=B3=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=8A=8ARecipeManager=E7=9A=84=E5=8A=A0=E8=BD=BD=E6=94=B9?= =?UTF-8?q?=E6=88=90ENABLE=E9=98=B6=E6=AE=B5=E8=BE=83=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yufiriamazenta/craftorithm/recipe/RecipeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 4d36bc0..ffde97d 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.ACTIVE, priority = 1), + @TaskRule(lifeCycle = LifeCycle.ENABLE), @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.ACTIVE)) { + if (lifeCycle.equals(LifeCycle.ENABLE)) { //设置各类型配方的注册方法 recipeRegisterMap.put(RecipeType.SHAPED, Bukkit::addRecipe); recipeRemoverMap.put(RecipeType.SHAPED, this::removeRecipes);