aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt10
3 files changed, 14 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt
index 100ad7427..e634cb375 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt
@@ -39,8 +39,9 @@ class DungeonHighlightClickedBlocks {
fun onSendPacket(event: PacketEvent.SendEvent) {
if (!SkyHanniMod.feature.dungeon.highlightClickedBlocks) return
if (!LorenzUtils.inDungeons) return
- if (!DungeonData.inBossRoom) return
- if (event.packet !is C08PacketPlayerBlockPlacement || event.packet.stack == null) return
+ if (DungeonData.inBossRoom) return
+ if (event.packet !is C08PacketPlayerBlockPlacement) return
+ if (event.packet.stack == null) return
val position = event.packet.position.toLorenzVec()
diff --git a/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt b/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt
index 4334cd0d1..6560bc606 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt
@@ -138,6 +138,7 @@ class SummoningMobManager {
@SubscribeEvent
fun renderOverlay(event: RenderGameOverlayEvent.Post) {
+ if (!LorenzUtils.inSkyblock) return
if (!SkyHanniMod.feature.summonings.summoningMobDisplay) return
if (summoningMobs.isEmpty()) return
diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
index 4fcc433ed..e39b62d28 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
@@ -62,6 +62,15 @@ class LorenzTest {
shouldLogPackets = !shouldLogPackets
println("shouldLogPackets: $shouldLogPackets")
}
+
+ var highestStep = 0
+
+ fun highStep(step: Int) {
+ if (step > highestStep) {
+ highestStep = step
+ text = "" + highestStep
+ }
+ }
}
@SubscribeEvent
@@ -75,6 +84,7 @@ class LorenzTest {
@SubscribeEvent
fun renderOverlay(event: RenderGameOverlayEvent.Post) {
+ if (!LorenzUtils.inSkyblock) return
if (!SkyHanniMod.feature.dev.debugEnabled) return
SkyHanniMod.feature.dev.debugPos.renderString(text)