Skip to content

Commit

Permalink
Fixed disposable fluidcontainers not being treated appropriately in t…
Browse files Browse the repository at this point in the history
…he refinery
  • Loading branch information
BluSunrize committed Nov 19, 2016
1 parent 56cf236 commit f24d9ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ else if(inventory[5]==null)
}

ItemStack emptyContainer = Utils.drainFluidContainer(tanks[0], inventory[0], inventory[1], null);
if(emptyContainer!=null)
if(emptyContainer!=null && emptyContainer.stackSize>0)
{
if(inventory[1]!=null && OreDictionary.itemMatches(inventory[1], emptyContainer, true))
inventory[1].stackSize+=emptyContainer.stackSize;
Expand All @@ -123,7 +123,7 @@ else if(inventory[1]==null)
update = true;
}
emptyContainer = Utils.drainFluidContainer(tanks[1], inventory[2], inventory[3], null);
if(emptyContainer!=null)
if(emptyContainer!=null && emptyContainer.stackSize>0)
{
if(inventory[3]!=null && OreDictionary.itemMatches(inventory[3], emptyContainer, true))
inventory[3].stackSize+=emptyContainer.stackSize;
Expand Down

0 comments on commit f24d9ea

Please sign in to comment.