aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 15:32:38 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 15:32:38 +0200
commite3e6125dfdb3df44646c2a418b47269bc7139299 (patch)
tree93071b61da97fc7557ca8d6dbfea51f95fb4ef71 /src/main
parent6f1fe665fc78757cc74ca7461c1700eaddec9f52 (diff)
downloadskyhanni-e3e6125dfdb3df44646c2a418b47269bc7139299.tar.gz
skyhanni-e3e6125dfdb3df44646c2a418b47269bc7139299.tar.bz2
skyhanni-e3e6125dfdb3df44646c2a418b47269bc7139299.zip
showing error message in console.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
index 9e627e897..6d1aeb9cc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt
@@ -10,6 +10,7 @@ import at.hannibal2.skyhanni.events.InventoryCloseEvent
import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValue
+import at.hannibal2.skyhanni.test.command.CopyErrorCommand
import at.hannibal2.skyhanni.utils.APIUtil
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull
@@ -26,7 +27,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems
import at.hannibal2.skyhanni.utils.SpecialColour
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import at.hannibal2.skyhanni.utils.renderables.Renderable
-import io.github.moulberry.notenoughupdates.NotEnoughUpdates
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.inventory.GuiChest
import net.minecraft.init.Items
@@ -258,7 +258,10 @@ class ChestValue {
)
json["storageGUI"].asJsonObject["enableStorageGUI3"].asBoolean
} else false
- } catch (e: Exception) { false }
+ } catch (e: Exception) {
+ CopyErrorCommand.logError(e, "Could not read NEU config to determine if the neu storage is emabled.")
+ false
+ }
}
private fun String.reduceStringLength(targetLength: Int, char: Char): String {