From b4bd11579f42cd835c52d0d9e93c045137fec286 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 9 Jun 2023 23:24:15 +0200 Subject: Small changes and give credit --- src/main/java/at/hannibal2/skyhanni/config/features/Misc.java | 8 ++++---- .../skyhanni/features/misc/RestorePieceOfWizardPortalLore.kt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java index fbb623f44..bf2baef35 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java @@ -503,14 +503,14 @@ public class Misc { public boolean serverRestartTitle = true; @Expose - @ConfigOption(name = "Config Button", desc = "Add a button to the pause menu to configure SkyHanni.") + @ConfigOption(name = "Piece Of Wizard Portal", desc = "Restore the Earned By lore line on bought Piece Of Wizard Portal.") @ConfigEditorBoolean - public boolean configButtonOnPause = true; + public boolean restorePieceOfWizardPortalLore = true; @Expose - @ConfigOption(name = "Piece Of Wizard Portal", desc = "Restore the Earned By lore line on bought Piece Of Wizard Portal.") + @ConfigOption(name = "Config Button", desc = "Add a button to the pause menu to configure SkyHanni.") @ConfigEditorBoolean - public boolean restorePieceOfWizardPortalLore = true; + public boolean configButtonOnPause = true; @Expose public Position inventoryLoadPos = new Position(394, 124, false, true); 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") } } -- cgit