ContainerFix
Modby Tschipp
ContainerFix fixes a common issue with Containers not closing properly
Type
Mod
CurseForge Downloads
2,716,543
CurseForge ID
290240
Last Updated
Sep 5, 2026
Description
ContainerFix fixes a common issue with many mods that doesn't close
the Gui of a Container, even if that container is destroyed or removed somehow.

This mod is supposed to be used in conjunction with other mods.
This bug was discovered by Darkosto.
For modders:
If you want to fix this issue for your mod, override Container#canInteractWith. In there, you would do a check if the TileEntity of the container still exists in the world, and if the player is close enough to the Block. This would mimic vanilla behavior.
Example:
@Override
public boolean canInteractWith(EntityPlayer player)
{
return te.world.getTileEntity(te.getPos()) == te && player.getDistanceSq(te.pos.add(0.5, 0.5, 0.5)) <= 64;
}
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Thermal Integration
Thermal integrates with others!
Quests Additions (Forge)
An addon for the FTB quests mod. It adds some task and reward types that are missing in the base mod. (Place, Break, Rep...
Binnie's Mods
Various expansions for Forestry adding new bees and trees
[ANGRY PIXEL] The Betweenlands
Introducing the Betweenlands, a dark and hostile environment...
Disenchanter (The Disenchanter Mod)
A small Mod adding a block to disenchant Items
AE2 Import Export Card
Adds an Import & Export Card for Applied Energistics 2