Skip to content

Commit 93f5047

Browse files
committed
Further fix patch to use nextRoom rather than currentRoom
1 parent 245e9fc commit 93f5047

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/stsjorbsmod/patches/ManifestPatch.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ public static void updateFloorNumPatch(AbstractDungeon __this, SaveFile saveFile
6868
if (AbstractDungeon.player != null) {
6969
__this.floorNum += PlayerManifestField.manifestField.get(AbstractDungeon.player);
7070

71-
int startingManifest =
72-
(AbstractDungeon.player != null && AbstractDungeon.player instanceof Cull &&
73-
__this.currMapNode != null && __this.currMapNode.room instanceof EventRoom) ?
74-
1 :
75-
0;
71+
boolean nextRoomIsEvent = __this.nextRoom != null && __this.nextRoom.room instanceof EventRoom;
72+
int startingManifest = (nextRoomIsEvent && AbstractDungeon.player instanceof Cull) ? 1 : 0;
7673
PlayerManifestField.manifestField.set(AbstractDungeon.player, startingManifest);
7774
}
7875
}

0 commit comments

Comments
 (0)