fix security terminal and portable cell stored items not showing

This commit is contained in:
PrototypeTrousers
2021-10-23 17:56:15 -03:00
parent 2f5ecfe638
commit 3db8d0185f
5 changed files with 58 additions and 32 deletions
@@ -742,16 +742,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, ITerminal
{
if( TileChest.this.getProxy().isActive() && this.getInternalHandler().getCellInv() != null )
{
try
{
TileChest.this.getProxy().getStorage().postAlterationOfStoredItems(
this.getChannel(),
Collections.singletonList( input.copy().setStackSize( input.getStackSize() - ( injected == null ? 0 : injected.getStackSize() ) ) ),
TileChest.this.mySrc );
} catch ( GridAccessException e )
{
e.printStackTrace();
}
TileChest.this.cellHandler.postChangesToListeners(Collections.singletonList( input.copy().setStackSize( input.getStackSize() - ( injected == null ? 0 : injected.getStackSize() ) ) ), TileChest.this.mySrc );
}
}
return injected;
@@ -803,16 +794,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, ITerminal
{
if( TileChest.this.getProxy().isActive() && this.getInternalHandler().getCellInv() != null )
{
try
{
TileChest.this.getProxy().getStorage().postAlterationOfStoredItems(
this.getChannel(),
Collections.singletonList( request.copy().setStackSize( -extracted.getStackSize() ) ),
TileChest.this.mySrc );
} catch ( GridAccessException e )
{
e.printStackTrace();
}
TileChest.this.cellHandler.postChangesToListeners(Collections.singletonList( request.copy().setStackSize( -extracted.getStackSize() ) ), TileChest.this.mySrc );
}
}
return extracted;