From c426f8bba31294a42de47813adac163cc01fecaf Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Sat, 25 Jun 2022 00:58:09 +0930 Subject: [PATCH] Add initializers to GameServer --- src/main/java/emu/grasscutter/server/game/GameServer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java index 2eeb00fca..21ad5907f 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -9,12 +9,15 @@ import emu.grasscutter.game.battlepass.BattlePassMissionManager; import emu.grasscutter.game.combine.CombineManger; import emu.grasscutter.game.drop.DropManager; import emu.grasscutter.game.dungeons.DungeonManager; +import emu.grasscutter.game.dungeons.challenge.DungeonChallenge; import emu.grasscutter.game.expedition.ExpeditionManager; import emu.grasscutter.game.gacha.GachaManager; import emu.grasscutter.game.managers.InventoryManager; import emu.grasscutter.game.managers.MultiplayerManager; import emu.grasscutter.game.managers.chat.ChatManager; import emu.grasscutter.game.managers.chat.ChatManagerHandler; +import emu.grasscutter.game.managers.energy.EnergyManager; +import emu.grasscutter.game.managers.stamina.StaminaManager; import emu.grasscutter.game.player.Player; import emu.grasscutter.game.quest.ServerQuestHandler; import emu.grasscutter.game.shop.ShopManager; @@ -82,6 +85,10 @@ public final class GameServer extends KcpServer { this.init(GameSessionManager.getListener(),channelConfig,address); + DungeonChallenge.initialize(); + EnergyManager.initialize(); + StaminaManager.initialize(); + this.address = address; this.packetHandler = new GameServerPacketHandler(PacketHandler.class); this.questHandler = new ServerQuestHandler();