ContainerFix
Modby Tschipp
ContainerFix fixes a common issue with Containers not closing properly
Downloads
2,679,953
Type
Mod
CurseForge ID
290240
Last Updated
Apr 9, 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;
}
Similar Mods
Better chunk loading[Forge/Fabric]
Predicts player movement to pre-load chunks and increases chunk load speed
Trumpet Skeleton
The sound of trumpets echoes through the night...
Custom NPCs
Create your own npcs and liven up your world or create your own adventure. Includes quests, a dialog system and a ton of...
FTB Backups 2
Updated verson of FTB Backups.
FTB Quests (Fabric)
FTB Quests is a lightweight, team-based questing mod and is very simple to use. (Fabric version)
Presence Footsteps
..An Overly complicated Sound Mod...