Skip to content

Commit

Permalink
将ItemManager的加载时间修改为ACTIVE,以防止其他插件物品hooker未注册导致的加载问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Dec 25, 2024
1 parent 2fef438 commit 9bb60f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import java.text.SimpleDateFormat
version = "1.10.15-beta2"
version = "1.10.15-beta3"

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@AutoTask(
rules = {
@TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1),
@TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 2),
@TaskRule(lifeCycle = LifeCycle.RELOAD)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@AutoTask(
rules = {
@TaskRule(
lifeCycle = LifeCycle.ENABLE, priority = 1
lifeCycle = LifeCycle.ACTIVE, priority = 1
),
@TaskRule(
lifeCycle = LifeCycle.RELOAD, priority = 1
Expand Down Expand Up @@ -201,7 +201,7 @@ public Map<String, Integer> customCookingFuelMap() {

@Override
public void run(Plugin plugin, LifeCycle lifeCycle) {
if (lifeCycle.equals(LifeCycle.ENABLE))
if (lifeCycle.equals(LifeCycle.ACTIVE))
regItemProvider(CraftorithmItemProvider.INSTANCE);
reloadCustomCookingFuel();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

@AutoTask(
rules = {
@TaskRule(lifeCycle = LifeCycle.ENABLE, priority = 2),
@TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1),
@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.ENABLE)) {
if (lifeCycle.equals(LifeCycle.ACTIVE)) {
//设置各类型配方的注册方法
recipeRegisterMap.put(RecipeType.SHAPED, Bukkit::addRecipe);
recipeRemoverMap.put(RecipeType.SHAPED, this::removeRecipes);
Expand Down

0 comments on commit 9bb60f0

Please sign in to comment.