mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
Prevent guis/containers from staying open after the TEs block is unloaded. Fixes #4976
This commit is contained in:
1 parent
8e1f0e544b
commit
a71d95aa8d
1 file changed
+1
-1
@@ -161,7 +161,7 @@ public abstract class TileEntityContainerBlock extends TileEntityBasicBlock impl
|
||||
@Override
|
||||
public boolean isUsableByPlayer(EntityPlayer entityplayer)
|
||||
{
|
||||
return !isInvalid();
|
||||
return !isInvalid() && this.world.isBlockLoaded(this.pos);//prevent Containers from remaining valid after the chunk has unloaded;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user