mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复世界加载问题
This commit is contained in:
@@ -267,8 +267,11 @@ public abstract class CraftEngine implements Plugin {
|
||||
this.vanillaLootManager.delayedInit();
|
||||
// 注册脱离坐骑监听器
|
||||
this.seatManager.delayedInit();
|
||||
// 注册世界加载相关监听器
|
||||
this.worldManager.delayedInit();
|
||||
|
||||
if (!Config.delayConfigurationLoad()) {
|
||||
// 注册世界加载相关监听器
|
||||
this.worldManager.delayedInit();
|
||||
}
|
||||
|
||||
// 延迟任务
|
||||
this.beforeEnableTaskRegistry.executeTasks();
|
||||
@@ -310,6 +313,7 @@ public abstract class CraftEngine implements Plugin {
|
||||
} else {
|
||||
try {
|
||||
this.reloadPlugin(Runnable::run, Runnable::run, true);
|
||||
this.worldManager.delayedInit();
|
||||
} catch (Exception e) {
|
||||
this.logger.severe("Failed to reload plugin on delayed enable stage", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user