From c99dfe1b340b8dcb27c3df0b899d0ebd163b65fd Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:56:05 +0200 Subject: Only allow calling drawSlotText inside the event --- .../java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt | 4 ++-- .../at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt index ea3246ac5..351e3123d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt @@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.GuiRenderItemEvent import at.hannibal2.skyhanni.utils.LorenzUtils -import at.hannibal2.skyhanni.utils.RenderUtils +import at.hannibal2.skyhanni.utils.RenderUtils.drawSlotText import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getPetCandyUsed import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -23,6 +23,6 @@ class PetCandyUsedDisplay { val x = event.x + 13 val y = event.y + 1 - RenderUtils.drawSlotText(x, y, stackTip, .9f) + event.drawSlotText(x, y, stackTip, .9f) } } \ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt index a1c780199..58b7924b1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt @@ -5,7 +5,7 @@ import at.hannibal2.skyhanni.events.GuiRenderItemEvent import at.hannibal2.skyhanni.events.LorenzToolTipEvent import at.hannibal2.skyhanni.utils.ItemUtils import at.hannibal2.skyhanni.utils.LorenzUtils -import at.hannibal2.skyhanni.utils.RenderUtils +import at.hannibal2.skyhanni.utils.RenderUtils.drawSlotText import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getAppliedPocketSackInASack import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -25,7 +25,7 @@ class PocketSackInASackDisplay { val x = event.x + 13 val y = event.y + 1 - RenderUtils.drawSlotText(x, y, stackTip, .9f) + event.drawSlotText(x, y, stackTip, .9f) } @SubscribeEvent -- cgit