Skip to content

Commit 8deb400

Browse files
fix: spirit leap names drawn behind items
1 parent c2b16b9 commit 8deb400

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/kotlin/gg/skytils/skytilsmod/features/impl/handlers/SpiritLeap.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object SpiritLeap : PersistentSave(File(Skytils.modDir, "spiritleap.json")) {
5555
private val nameSlotCache = HashMap<Int, String>()
5656

5757
@SubscribeEvent
58-
fun onGuiDrawPost(event: GuiContainerEvent.BackgroundDrawnEvent) {
58+
fun onGuiDrawPost(event: GuiContainerEvent.ForegroundDrawnEvent) {
5959
if (!Utils.inDungeons) return
6060
if (event.container is ContainerChest) {
6161
if ((Skytils.config.spiritLeapNames && event.chestName == "Spirit Leap") || (Skytils.config.reviveStoneNames && event.chestName == "Revive A Teammate") || (Skytils.config.ghostTeleportMenuNames && event.chestName == "Teleport to Player")) {

src/main/kotlin/gg/skytils/skytilsmod/listeners/DungeonListener.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ object DungeonListener {
8989
if (event.packet is S02PacketChat) {
9090
val text = event.packet.chatComponent.formattedText
9191
if (text == "§r§aStarting in 1 second.§r") {
92+
printDevMessage("Starting dungeon", "dungeonlistener")
9293
team.clear()
9394
deads.clear()
9495
missingPuzzles.clear()
@@ -156,6 +157,7 @@ object DungeonListener {
156157
val tabEntries = TabListUtils.tabEntries
157158
if (team.isEmpty() || (DungeonTimer.dungeonStartTime != -1L && team.values.any { it.dungeonClass == DungeonClass.EMPTY })) {
158159
if (tabEntries.isNotEmpty() && tabEntries[0].second.contains("§r§b§lParty §r§f(")) {
160+
printDevMessage("Parsing party", "dungeonlistener")
159161
val partyCount = partyCountPattern.find(tabEntries[0].second)?.groupValues?.get(1)?.toIntOrNull()
160162
if (partyCount != null) {
161163
println("There are $partyCount members in this party")

0 commit comments

Comments
 (0)