Freshly crafted dank cannot be opened
Fourmisain opened this issue ยท 0 comments
Danks without NBT cannot be opened and entering construction mode crashes with
java.lang.IllegalArgumentException: No enum constant tfar.dankstorage.utils.DankStats.
at Not Enough Crashes deobfuscated stack trace.(1.16.5+build.5)
at java.lang.Enum.valueOf(Enum.java:273)
at tfar.dankstorage.utils.DankStats.valueOf(DankStats.java:3)
at tfar.dankstorage.inventory.DankInventory.deserializeNBT(DankInventory.java:179)
at tfar.dankstorage.inventory.PortableDankInventory.readItemStack(PortableDankInventory.java:22)
at tfar.dankstorage.inventory.PortableDankInventory.(PortableDankInventory.java:18)
at tfar.dankstorage.inventory.PortableDankInventory.(PortableDankInventory.java:12)
at tfar.dankstorage.utils.Utils.getHandler(Utils.java:191)
at tfar.dankstorage.item.DankItem.appendTooltip(DankItem.java:214)
at net.minecraft.item.ItemStack.getTooltip(ItemStack:631)
This can be worked around by putting the dank in a dock - it can be opened and taking it out gives it it's usual NBT.