diff --git a/src/main/java/emu/grasscutter/game/home/HomeWorld.java b/src/main/java/emu/grasscutter/game/home/HomeWorld.java index 525da1be4..c98e93c22 100644 --- a/src/main/java/emu/grasscutter/game/home/HomeWorld.java +++ b/src/main/java/emu/grasscutter/game/home/HomeWorld.java @@ -23,8 +23,8 @@ public class HomeWorld extends World { super(server, owner); this.home = owner.isOnline() ? owner.getHome() : GameHome.getByUid(owner.getUid()); - server.registerHomeWorld(this); this.refreshModuleManager(); + server.registerHomeWorld(this); } @Override diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java index 4baf00b51..1787f93ea 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -288,12 +288,9 @@ public final class GameServer extends KcpServer implements Iterable { public synchronized void onTick() { var tickStart = Instant.now(); - // Tick worlds. + // Tick worlds and home worlds. this.worlds.removeIf(World::onTick); - // Tick Home Worlds (Not remove, HomeWorld is constant). - this.homeWorlds.values().forEach(HomeWorld::onTick); - // Tick players. this.players.values().forEach(Player::onTick);