diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
4 files changed, 12 insertions, 14 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/ShowItemUuid.kt b/src/main/java/at/hannibal2/skyhanni/test/ShowItemUuid.kt index 030f6161f..6a352ca0f 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/ShowItemUuid.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/ShowItemUuid.kt @@ -9,7 +9,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class ShowItemUuid { @SubscribeEvent - fun onItemTooltipLow(event: LorenzToolTipEvent) { + fun onTooltip(event: LorenzToolTipEvent) { if (!SkyHanniMod.feature.dev.debug.showItemUuid) return event.itemStack.getItemUuid()?.let { event.toolTip.add("ยง7Item UUID: '$it'") diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 7e31bdb3d..69d9c7887 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -475,22 +475,20 @@ class SkyHanniDebugsAndTests { } @SubscribeEvent - fun onRenderLocation(event: GuiRenderEvent.GuiOverlayRenderEvent) { - if (LorenzUtils.inSkyBlock && Minecraft.getMinecraft().gameSettings.showDebugInfo && debugConfig.currentAreaDebug) { - config.debugLocationPos.renderString( - "Current Area: ${HypixelData.skyBlockArea}", - posLabel = "SkyBlock Area (Debug)" - ) - } - } - - @SubscribeEvent fun onChat(event: LorenzChatEvent) { } @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { if (!LorenzUtils.inSkyBlock) return + + if (Minecraft.getMinecraft().gameSettings.showDebugInfo && debugConfig.currentAreaDebug) { + config.debugLocationPos.renderString( + "Current Area: ${HypixelData.skyBlockArea}", + posLabel = "SkyBlock Area (Debug)" + ) + } + if (!debugConfig.enabled) return if (displayLine.isNotEmpty()) { diff --git a/src/main/java/at/hannibal2/skyhanni/test/TestCopyBestiaryValues.kt b/src/main/java/at/hannibal2/skyhanni/test/TestCopyBestiaryValues.kt index 03a0776ce..76ebba30e 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/TestCopyBestiaryValues.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/TestCopyBestiaryValues.kt @@ -49,7 +49,7 @@ object TestCopyBestiaryValues { ) @SubscribeEvent(priority = EventPriority.LOW) - fun onLateInventoryOpen(event: InventoryUpdatedEvent) { + fun onInventoryUpdated(event: InventoryUpdatedEvent) { if (!SkyHanniMod.feature.dev.debug.copyBestiaryData) return SkyHanniDebugsAndTests.displayLine = "" diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt index 7b0fcddbd..be279eaa8 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt @@ -76,7 +76,7 @@ object TrackSoundsCommand { } @SubscribeEvent - fun onSoundEvent(event: PlaySoundEvent) { + fun onPlaySound(event: PlaySoundEvent) { if (cutOfTime.isInPast()) return if (event.soundName == "game.player.hurt" && event.pitch == 0f && event.volume == 0f) return // remove random useless sound if (event.soundName == "") return // sound with empty name aren't useful @@ -85,7 +85,7 @@ object TrackSoundsCommand { } @SubscribeEvent - fun onRender(event: GuiRenderEvent.GuiOverlayRenderEvent) { + fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { if (cutOfTime.isInPast()) return position.renderRenderables(display, posLabel = "Track sound log") } |