Iron Chests

Iron Chests

171M Downloads

Cystal Chests crash on open

RoyalReject opened this issue ยท 7 comments

commented

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

commented

Can confirm (also on forge *.15)

commented

same here (forge .16)

commented

same here forge .16

commented

Same here, I also made an issue 5 days ago

commented

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

commented

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.

commented

confirmed
1.18