ironchest icon indicating copy to clipboard operation
ironchest copied to clipboard

Cystal Chests crash on open

Open RoyalReject opened this issue 2 years ago • 7 comments

Version Information

Minecraft: 1.18 Forge: 38.0.14 Iron Chests: 1.18-13.0.5

Report Information

When opening a crystal chest it crashes the game

Steps to Reproduce

Place down crystal chest in world and attempt to open

Crash Log

PasteBinLink

RoyalReject avatar Dec 05 '21 20:12 RoyalReject

Can confirm (also on forge *.15)

Zedrimar avatar Dec 07 '21 01:12 Zedrimar

same here (forge .16)

anaooz avatar Dec 08 '21 18:12 anaooz

same here forge .16

aurilisdev avatar Dec 09 '21 00:12 aurilisdev

Same here, I also made an issue 5 days ago

emanuele246gi avatar Dec 09 '21 11:12 emanuele246gi

Very reproducible, it looks like it's based on when the entity is created (opening the chest does this, as well as trying to utilize it with something pulling from the inventory. It looks like the new 1.17 (I experienced it on 1.18, but the issue looks like it's on 1.17 too) change to use an ICrystalChest interface left an unimplemented int getContainerSize(); method in both the regular and the trapped entity. Either setting a default in the interface or defining it in the respective entities should be good enough to fix it, but I can't verify that because I don't have an env set up for it.

kevin-wackman avatar Dec 10 '21 19:12 kevin-wackman

I loaded a dev env and it works but breaks once you build the solution. The crystal check extends AbstractIronChestBlockEntity which includes int getContainerSize(); have some stuff going on before I can mess with it more

RoyalReject avatar Dec 10 '21 23:12 RoyalReject

confirmed 1.18

Unexian avatar Dec 14 '21 20:12 Unexian