aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
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/utils
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/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 157ecb90f..760c4b946 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.core.config.Position
import at.hannibal2.skyhanni.data.GuiEditManager
import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsX
import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsY
+import at.hannibal2.skyhanni.events.GuiRenderItemEvent
import at.hannibal2.skyhanni.utils.renderables.Renderable
import io.github.moulberry.moulconfig.internal.TextRenderUtils
import net.minecraft.client.Minecraft
@@ -971,7 +972,7 @@ object RenderUtils {
)
}
- fun drawSlotText(xPos: Int, yPos: Int, text: String, scale: Float) {
+ fun GuiRenderItemEvent.RenderOverlayEvent.GuiRenderItemPost.drawSlotText(xPos: Int, yPos: Int, text: String, scale: Float) {
val fontRenderer = Minecraft.getMinecraft().fontRendererObj
GlStateManager.disableLighting()