Fixes #2666: Restore inventory after powerloss and still avoid dupes.

This commit is contained in:
yueh 2016-12-01 16:17:46 +01:00
parent 5028c8025b
commit 12dbd17320
1 changed files with 2 additions and 1 deletions

View File

@ -89,8 +89,8 @@ public class GridStorageCache implements IStorageGrid
final ICellContainer cc = (ICellContainer) machine;
final CellChangeTracker tracker = new CellChangeTracker();
this.inactiveCellProviders.remove( cc );
this.removeCellProvider( cc, tracker );
this.inactiveCellProviders.remove( cc );
this.getGrid().postEvent( new MENetworkCellArrayUpdate() );
tracker.applyChanges();
@ -186,6 +186,7 @@ public class GridStorageCache implements IStorageGrid
if( this.activeCellProviders.contains( cc ) )
{
this.activeCellProviders.remove( cc );
this.inactiveCellProviders.add( cc );
BaseActionSource actionSrc = new BaseActionSource();