Skip to content

Commit 5b91a82

Browse files
TheHolyChicknMy-Name-Is-Jeff
authored andcommitted
fix: profit calc after changes to Croesus GUI name (#494)
Signed-off-by: The Holy Chicken <[email protected]>
1 parent 22c8038 commit 5b91a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonChestProfit.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ object DungeonChestProfit {
5353
private val element = DungeonChestProfitElement()
5454
private var rerollBypass = false
5555
private val essenceRegex = Regex("§d(?<type>\\w+) Essence §8x(?<count>\\d+)")
56-
private val croesusChestRegex = Regex("^(Master Mode|The)? Catacombs - Floor (IV|V?I{0,3})$")
56+
private val croesusChestRegex = Regex("^(Master Mode )?The Catacombs - Flo(or (IV|V?I{0,3}))?$")
5757

5858
@SubscribeEvent
5959
fun onGUIDrawnEvent(event: GuiContainerEvent.ForegroundDrawnEvent) {
@@ -126,7 +126,7 @@ object DungeonChestProfit {
126126
val stack = event.slot.stack ?: return
127127
if (stack.item == Items.skull) {
128128
val name = stack.displayName
129-
if (!(name == "§cThe Catacombs" || name == "§cMaster Mode Catacombs")) return
129+
if (!(name == "§cThe Catacombs" || name == "§cMaster Mode The Catacombs")) return
130130
val lore = ItemUtil.getItemLore(stack)
131131
event.slot highlight when {
132132
lore.any { line -> line == "§aNo more Chests to open!" } -> {
@@ -325,4 +325,4 @@ object DungeonChestProfit {
325325
Skytils.guiManager.registerElement(this)
326326
}
327327
}
328-
}
328+
}

0 commit comments

Comments
 (0)