Fixes #3428: Invalidate container when the corresponding TE no longer exists. (#3433)

This commit is contained in:
yueh
2018-03-22 13:52:07 +01:00
committed by GitHub
parent ccefb47581
commit 9481c9a7d7
2 changed files with 5 additions and 5 deletions
@@ -356,6 +356,11 @@ public abstract class AEBaseContainer extends Container
if( Platform.isServer() )
{
if( this.tileEntity != null && this.tileEntity.getWorld().getTileEntity( this.tileEntity.getPos() ) != this.tileEntity )
{
this.setValidContainer( false );
}
for( final IContainerListener listener : this.listeners )
{
for( final SyncData sd : this.syncData.values() )