aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 23:20:31 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 23:20:31 +0200
commitd71cccdeb1f8b99a3b5cc9c7c893a5975ee849af (patch)
tree817373b0e2e055c3f847a29cf420ae9ab40e1f25 /src/main/java/at/hannibal2
parent066db5a9493febdc4471e4377072f02505656d4c (diff)
downloadskyhanni-d71cccdeb1f8b99a3b5cc9c7c893a5975ee849af.tar.gz
skyhanni-d71cccdeb1f8b99a3b5cc9c7c893a5975ee849af.tar.bz2
skyhanni-d71cccdeb1f8b99a3b5cc9c7c893a5975ee849af.zip
Added internal name display to debug mode
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
index 917f33f1d..8abe8e474 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
@@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.events.PlaySoundEvent
import at.hannibal2.skyhanni.events.ReceiveParticleEvent
import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorColorNames
import at.hannibal2.skyhanni.utils.*
+import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import net.minecraft.nbt.NBTTagCompound
@@ -162,19 +163,12 @@ class LorenzTest {
@SubscribeEvent
fun onItemTooltipLow(event: ItemTooltipEvent) {
-// val itemStack = event.itemStack
-// if (itemStack != null) {
-// val internalName = itemStack.getInternalName()
-// event.toolTip.add("internal name: $internalName")
-// val data = BazaarApi.getBazaarDataByInternalName(internalName)
-// if (data == null) {
-// event.toolTip.add("SkyHanni Price: null")
-// } else {
-// val buyPrice = data.buyPrice
-// val sellPrice = data.sellPrice
-// event.toolTip.add("SkyHanni Price: $buyPrice / $sellPrice")
-// }
-// }
+ if (!SkyHanniMod.feature.dev.debugEnabled) return
+ val itemStack = event.itemStack
+ if (itemStack != null) {
+ val internalName = itemStack.getInternalName()
+ event.toolTip.add("Internal Name: '$internalName'")
+ }
}
@SubscribeEvent