aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bazaar
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 03:34:10 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 03:34:10 +0100
commit7d0223d1cbc09909b8989c8aea2576a171acdaea (patch)
tree4d1024f7375c11ba15f5dd348fd4503aae1ddd7d /src/main/java/at/hannibal2/skyhanni/features/bazaar
parent319654afd68440c9cbc2eedd3ae4718b5c045519 (diff)
downloadskyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.tar.gz
skyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.tar.bz2
skyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.zip
replaced "text to render" to "display"
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bazaar')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
index eb6d98d31..200c3e69e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
@@ -15,18 +15,18 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class BazaarBestSellMethod {
companion object {
- private var textToRender = ""
+ private var display = ""
}
@SubscribeEvent
fun onBackgroundDrawn(event: GuiContainerEvent.CloseWindowEvent) {
- textToRender = ""
+ display = ""
}
@SubscribeEvent
fun onGuiDraw(event: GuiScreenEvent.DrawScreenEvent.Post) {
if (!isEnabled()) return
- textToRender = getNewText(event)
+ display = getNewText(event)
}
private fun getNewText(event: GuiScreenEvent.DrawScreenEvent.Post): String {
@@ -74,7 +74,7 @@ class BazaarBestSellMethod {
fun renderOverlay(event: GuiScreenEvent.BackgroundDrawnEvent) {
if (!isEnabled()) return
- SkyHanniMod.feature.bazaar.bestSellMethodPos.renderString(textToRender)
+ SkyHanniMod.feature.bazaar.bestSellMethodPos.renderString(display)
}
private fun isEnabled(): Boolean {