From 30d36e8d371e262767e1a297f589b1c9203082cf Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Thu, 26 Oct 2023 03:46:29 -0700 Subject: [PATCH] Increment rogue map counter properly --- src/main/java/emu/lunarcore/game/rogue/RogueInstance.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java index 621efcd..2b31d06 100644 --- a/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java +++ b/src/main/java/emu/lunarcore/game/rogue/RogueInstance.java @@ -29,7 +29,7 @@ public class RogueInstance { public RogueInstance(Player player, RogueAreaExcel excel) { this.player = player; this.excel = excel; - this.currentRoomProgress = 1; + this.currentRoomProgress = 0; this.baseAvatarIds = new HashSet<>(); this.initRooms(); @@ -79,6 +79,7 @@ public class RogueInstance { if (nextRoom == null) return null; // Enter room + this.currentRoomProgress++; this.currentSiteId = nextRoom.getSiteId(); nextRoom.setStatus(RogueRoomStatus.ROGUE_ROOM_STATUS_PLAY); @@ -100,6 +101,7 @@ public class RogueInstance { // Send packet if we are not entering the rogue instance for the first time if (prevRoom != null) { + getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, prevRoom)); getPlayer().sendPacket(new PacketSyncRogueMapRoomScNotify(this, nextRoom)); }