Back to mods
ContainerFix project artwork

CurseForge · Minecraft mod

ContainerFix

ContainerFix fixes a common issue with Containers not closing properly

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which ContainerFix release should I use?

Updated 7 years ago
Latest stable file ContainerFix MC1.13.2 v1.0
Game version 1.13.2
Loader Not required

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release No loader listed
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

ContainerFix versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.