aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-09 23:24:15 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-09 23:24:15 +0200
commitb4bd11579f42cd835c52d0d9e93c045137fec286 (patch)
tree83c4d88ed252ec222b0ac814751cc464161b710c /src/main/java/at/hannibal2/skyhanni/features/misc
parentfd21e3c6f7c40f92972f594b2724950e036986a9 (diff)
downloadskyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.tar.gz
skyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.tar.bz2
skyhanni-b4bd11579f42cd835c52d0d9e93c045137fec286.zip
Small changes and give credit
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt
index 01810d729..67883f422 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt
@@ -15,8 +15,8 @@ class RestorePieceOfWizardPortalLore {
if (!config.restorePieceOfWizardPortalLore) return
val stack = event.itemStack
if (stack.getInternalName() != "WIZARD_PORTAL_MEMENTO") return
- val recipient = stack.getRecipientName()
- if (!event.toolTip[5].contains(recipient!!)) {
+ val recipient = stack.getRecipientName() ?: return
+ if (!event.toolTip[5].contains(recipient)) {
event.toolTip.add(5, "ยง7Earned by: $recipient")
}
}