aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-08 11:56:05 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-08 11:56:05 +0200
commitc99dfe1b340b8dcb27c3df0b899d0ebd163b65fd (patch)
treedb8946d0451c68e1f22c5b7a57c3ce3bb0162f3a /src/main/java/at/hannibal2/skyhanni/features/misc
parent1447426be65a3ce29cef36395cd47603c9539e00 (diff)
downloadskyhanni-c99dfe1b340b8dcb27c3df0b899d0ebd163b65fd.tar.gz
skyhanni-c99dfe1b340b8dcb27c3df0b899d0ebd163b65fd.tar.bz2
skyhanni-c99dfe1b340b8dcb27c3df0b899d0ebd163b65fd.zip
Only allow calling drawSlotText inside the event
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PetCandyUsedDisplay.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PocketSackInASackDisplay.kt4
2 files changed, 4 insertions, 4 deletions
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