Minecraft ContainerFix mod 2026 download
logo
minecraft mod ContainerFix

ContainerFix

Game Version: 1.13.2
Total Downloads: 1,081,029
Updated: Apr 20, 2019
Created: Mar 16, 2018
Download ContainerFixDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
ContainerFix MC1.13.2 v1.0 release 13.01 KB Apr 20, 2019 1.13.2 3,574 download ContainerFix ContainerFix MC1.13.2 v1.0 releaseDownload
ContainerFix MC1.12.2 v1.0 release 13.97 KB Mar 16, 2018 1.12.2 1,077,455 download ContainerFix ContainerFix MC1.12.2 v1.0 releaseDownload

Description

Share this:

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;
}

 

Comments

Add a comment