1.16.5 Container click crash
Juicylene opened this issue ยท 2 comments
i've been trying to access my anvil, but any time i do so the game crashes due to container clicking.
mc version: 1.16.5
mod version: 1.3.3
forge version: 36.2.29
crash report:
crash-2022-04-24_15.26.28-client.txt
It looks like someone was trying to strip an invalid enchantment off of an item using an anvil and book. It's crashing trying to look up the enchantment for the ID stored in the item. Was a mod removed from your pack? Either that, or somebody's doing something naughty with the item NBT.
I can add some extra error handling around invalid enchantment IDs, but to really understand what's happening, I'd
need to see the full NBT tag of the item you're trying to put into the anvil.
Meanwhile, if you just want to use the anvil again, the workaround is to open config/pitweaks.toml and disable the anvilDisenchant tweak.
I looked at the crash report again, and it looks like you're using a mod called Reagenchant that is replacing the entire Anvil container. I've never heard of that mod. I suppose both Reagenchant and PiTweaks are both trying to mess with the anvil code, and it's getting messy.
The workaround is the same, though. Disable the anvil tweaks in pitweaks.toml should fix the crash. It makes it so PiTweaks doesn't even register its handler.