diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-10-07 13:48:43 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-10-07 13:48:43 +0200 |
commit | bd5d50c5fc31dd2df76f19cc6b27579615149647 (patch) | |
tree | aa6fd5142a19d1c1de62293dbb6868e4f217511e /src/main | |
parent | 2e13dbc1d038090566dd630559b290b3991aa181 (diff) | |
download | skyhanni-bd5d50c5fc31dd2df76f19cc6b27579615149647.tar.gz skyhanni-bd5d50c5fc31dd2df76f19cc6b27579615149647.tar.bz2 skyhanni-bd5d50c5fc31dd2df76f19cc6b27579615149647.zip |
add debug data in console when silent error happens
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index a7abe6527..75c6173ba 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -12,6 +12,8 @@ import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.CollectionUtils.addOrPut import at.hannibal2.skyhanni.utils.ItemBlink.checkBlinkItem import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName +import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull +import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName import at.hannibal2.skyhanni.utils.NumberUtil.isInt import at.hannibal2.skyhanni.utils.PrimitiveIngredient.Companion.toPrimitiveItemStacks @@ -259,7 +261,16 @@ object NEUItems { AdjustStandardItemLighting.adjust() // Compensate for z scaling - Minecraft.getMinecraft().renderItem.renderItemIntoGUI(item, 0, 0) + try { + Minecraft.getMinecraft().renderItem.renderItemIntoGUI(item, 0, 0) + } catch (e: Exception) { + println(" ") + println("item: $item") + println("name: ${item.name}") + println("getInternalNameOrNull: ${item.getInternalNameOrNull()}") + println(" ") + e.printStackTrace() + } RenderHelper.disableStandardItemLighting() GlStateManager.popMatrix() |