Fixed unnecessary cell saving when cell is full (#3611)
This commit is contained in:
@@ -111,7 +111,7 @@ public class FluidCellInventory extends AbstractCellInventory<IAEFluidStack>
|
|||||||
if( l != null )
|
if( l != null )
|
||||||
{
|
{
|
||||||
final long remainingItemSlots = this.getRemainingItemCount();
|
final long remainingItemSlots = this.getRemainingItemCount();
|
||||||
if( remainingItemSlots < 0 )
|
if( remainingItemSlots <= 0 )
|
||||||
{
|
{
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ public class ItemCellInventory extends AbstractCellInventory<IAEItemStack>
|
|||||||
if( l != null )
|
if( l != null )
|
||||||
{
|
{
|
||||||
final long remainingItemCount = this.getRemainingItemCount();
|
final long remainingItemCount = this.getRemainingItemCount();
|
||||||
if( remainingItemCount < 0 )
|
if( remainingItemCount <= 0 )
|
||||||
{
|
{
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user