diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-14 12:41:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 12:41:29 +0200 |
commit | 0a027ea5dac41002a460a2627d5c4ff3820c271d (patch) | |
tree | 0bebf33c70517b24c2fdbba27b63182172a1a3cb /src/main/java/at/hannibal2/skyhanni/test | |
parent | 085240750f346d8f5e57b3f2b5bef3ec31c44763 (diff) | |
download | skyhanni-0a027ea5dac41002a460a2627d5c4ff3820c271d.tar.gz skyhanni-0a027ea5dac41002a460a2627d5c4ff3820c271d.tar.bz2 skyhanni-0a027ea5dac41002a460a2627d5c4ff3820c271d.zip |
Improvement: Repo Errors (#2338)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 3e31faef0..d3df5da3e 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -20,7 +20,6 @@ import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorColorNames import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi.getBazaarData import at.hannibal2.skyhanni.features.mining.OreBlock import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule -import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.BlockUtils import at.hannibal2.skyhanni.utils.BlockUtils.getBlockStateAt import at.hannibal2.skyhanni.utils.ChatUtils @@ -32,7 +31,6 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull import at.hannibal2.skyhanni.utils.ItemUtils.getItemCategoryOrNull import at.hannibal2.skyhanni.utils.ItemUtils.getItemRarityOrNull import at.hannibal2.skyhanni.utils.ItemUtils.itemName -import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzColor @@ -366,12 +364,9 @@ object SkyHanniDebugsAndTests { return } - val internalName = hand.getInternalNameOrNull() - ?: ErrorManager.skyHanniError("Internal name is null for item ${hand.name}") - - val rawInternalName = internalName.asString() - OSUtils.copyToClipboard(rawInternalName) - ChatUtils.chat("§eCopied internal name §7$rawInternalName §eto the clipboard!") + val internalName = hand.getInternalName().asString() + OSUtils.copyToClipboard(internalName) + ChatUtils.chat("§eCopied internal name §7$internalName §eto the clipboard!") } fun toggleRender() { |