diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-12 22:56:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-12 22:56:15 +0200 |
commit | aca189fe13935e641c0cac3b91693c6c3fcf91c7 (patch) | |
tree | 93142bc4d2a654e452be6d598bf41ba27e2d3ac5 /src/main/java/at/hannibal2/skyhanni/mixins/hooks | |
parent | 746351e19048c2e33dd6c71b5cf5b7d82f648690 (diff) | |
download | skyhanni-aca189fe13935e641c0cac3b91693c6c3fcf91c7.tar.gz skyhanni-aca189fe13935e641c0cac3b91693c6c3fcf91c7.tar.bz2 skyhanni-aca189fe13935e641c0cac3b91693c6c3fcf91c7.zip |
fixed globalRender description and replaced RenderWorldLastEvent with LorenzRenderWorldEvent
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
3 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt index 136ce8b11..a09d8d923 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiContainerHook.kt @@ -22,7 +22,7 @@ class GuiContainerHook(guiAny: Any) { } fun backgroundDrawn(mouseX: Int, mouseY: Int, partialTicks: Float) { - if (!SkyHanniDebugsAndTests.globalRenderToggle) return + if (!SkyHanniDebugsAndTests.globalRender) return GuiContainerEvent.BackgroundDrawnEvent(gui, gui.inventorySlots, mouseX, mouseY, partialTicks).postAndCatch() } diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt index d65d36cdd..38568987f 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderItemHook.kt @@ -13,7 +13,7 @@ fun renderItemOverlayPost( yPosition: Int, text: String?, ) { - if (!SkyHanniDebugsAndTests.globalRenderToggle) return + if (!SkyHanniDebugsAndTests.globalRender) return GuiRenderItemEvent.RenderOverlayEvent.GuiRenderItemPost( fr, stack, @@ -24,6 +24,6 @@ fun renderItemOverlayPost( } fun renderItemReturn(stack: ItemStack, x: Int, y: Int) { - if (!SkyHanniDebugsAndTests.globalRenderToggle) return + if (!SkyHanniDebugsAndTests.globalRender) return RenderRealOverlayEvent(stack, x, y).postAndCatch() } diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderLivingEntityHelper.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderLivingEntityHelper.kt index 060de8d3e..d2ea03611 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderLivingEntityHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderLivingEntityHelper.kt @@ -41,7 +41,7 @@ class RenderLivingEntityHelper { } fun <T : EntityLivingBase> setColorMultiplier(entity: T): Int { - if (!SkyHanniDebugsAndTests.globalRenderToggle) return 0 + if (!SkyHanniDebugsAndTests.globalRender) return 0 if (entityColorMap.containsKey(entity)) { val condition = entityColorCondition[entity]!! if (condition.invoke()) { @@ -50,14 +50,14 @@ class RenderLivingEntityHelper { } //TODO remove event - if (!SkyHanniDebugsAndTests.globalRenderToggle) return 0 + if (!SkyHanniDebugsAndTests.globalRender) return 0 val event = RenderMobColoredEvent(entity, 0) event.postAndCatch() return event.color } fun <T : EntityLivingBase> changeHurtTime(entity: T): Int { - if (!SkyHanniDebugsAndTests.globalRenderToggle) return 0 + if (!SkyHanniDebugsAndTests.globalRender) return 0 if (entityNoHurTime.contains(entity)) { val condition = entityNoHurTimeCondition[entity]!! if (condition.invoke()) { |