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
@@ -148,11 +148,6 @@ public class ContainerCellWorkbench extends ContainerUpgradeable
final ItemStack is = this.workBench.getInventoryByName( "cell" ).getStackInSlot( 0 );
if( Platform.isServer() )
{
if( this.workBench.getWorld().getTileEntity( this.workBench.getPos() ) != this.workBench )
{
this.setValidContainer( false );
}
for( final IContainerListener listener : this.listeners )
{
if( this.prevStack != is )