aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
index ab13c2aec..f66a63f63 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
@@ -388,10 +388,15 @@ class GardenVisitorFeatures {
val visitor = getVisitor(lastClickedNpc) ?: return
- event.toolTip.let {
- it.clear()
- it.addAll(visitor.lastLore)
+ val toolTip = event.toolTip ?: return
+ toolTip.clear()
+
+ if (visitor.lastLore.isEmpty()) {
+ readToolTip(visitor, event.itemStack)
+ LorenzUtils.chat("§e[SkyHanni] Reloaded the visitor data of that inventory, this should not happen.")
}
+
+ toolTip.addAll(visitor.lastLore)
}
private fun readToolTip(visitor: Visitor, itemStack: ItemStack?) {