ironchest
ironchest copied to clipboard
Iron chests protection
Not sure if this is an issue with iron chests or sponge.
if (block instanceof BlockContainer)
{
cancelEvent(event, event.getEntityPlayer());
return;
}
I use this to cancel the event of opening chests to protect them in our mod. Doesn't seem to work with Ironchests though.