aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 15:37:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 15:37:56 +0100
commitc15c3d2db212f2fb73e6063aa5ff3cc2b5a7a4f5 (patch)
treedf378748160d120637459ef5e6e0b658cf899fce /src/main/java/at/hannibal2/skyhanni/features/garden
parent52a6ff3c2ce36c2e0c8bccea09f412e6f86c922a (diff)
downloadskyhanni-c15c3d2db212f2fb73e6063aa5ff3cc2b5a7a4f5.tar.gz
skyhanni-c15c3d2db212f2fb73e6063aa5ff3cc2b5a7a4f5.tar.bz2
skyhanni-c15c3d2db212f2fb73e6063aa5ff3cc2b5a7a4f5.zip
Start fixing gui rendering logic.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/SkyMartBestProfit.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/SkyMartBestProfit.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/SkyMartBestProfit.kt
index 6bbea13c1..41dd7da9b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/SkyMartBestProfit.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/SkyMartBestProfit.kt
@@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.garden
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.IslandType
+import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.InventoryCloseEvent
import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
@@ -15,7 +16,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import net.minecraft.client.Minecraft
import net.minecraft.item.ItemStack
-import net.minecraftforge.client.event.GuiScreenEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.util.*
import java.util.regex.Pattern
@@ -91,7 +91,7 @@ class SkyMartBestProfit {
}
@SubscribeEvent
- fun onBackgroundDraw(event: GuiScreenEvent.BackgroundDrawnEvent) {
+ fun onBackgroundDraw(event: GuiRenderEvent.ChestBackgroundRenderEvent) {
if (isEnabled()) {
config.skyMartCopperPricePos.renderStringsAndItems(display)
}