Skip to content

Commit

Permalink
想了想还是把RecipeManager的加载改成ENABLE阶段较好
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Dec 25, 2024
1 parent 9bb60f0 commit 35f7fc5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

@AutoTask(
rules = {
@TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1),
@TaskRule(lifeCycle = LifeCycle.ENABLE),
@TaskRule(lifeCycle = LifeCycle.RELOAD, priority = 2)
}
)
Expand Down Expand Up @@ -482,7 +482,7 @@ private void saveDefConfigFile(List<File> 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);
Expand Down

0 comments on commit 35f7fc5

Please sign in to comment.