CurseForge · Minecraft mod
ContainerFix
ContainerFix fixes a common issue with Containers not closing properly
Quick answer
Which ContainerFix release should I use?
ContainerFix MC1.13.2 v1.0 targets 1.13.2. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is ContainerFix required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does ContainerFix MC1.13.2 v1.0 need?
ContainerFix MC1.13.2 v1.0. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add ContainerFix without breaking your instance.
Built for ContainerFix MC1.13.2 v1.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use ContainerFix MC1.13.2 v1.0. It targets 1.13.2; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside ContainerFix MC1.13.2 v1.0. It opens that exact file at the source.
About this project
What does ContainerFix add?
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:
@Overridepublic boolean canInteractWith(EntityPlayer player) { return te.world.getTileEntity(te.getPos()) == te && player.getDistanceSq(te.pos.add(0.5, 0.5, 0.5)) <= 64;}
Project description from CurseForge.
Pick your setup
ContainerFix by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.12.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ContainerFix versions and loaders
ContainerFix MC1.13.2 v1.0
ContainerFix MC1.13.2 v1.0.jar
20 Apr 2019
ContainerFix MC1.12.2 v1.0
ContainerFix MC1.12.2 v1.0.jar
16 Mar 2018
Looking for an older file? The official CurseForge project page is in Resources.