Skip to content

Commit

Permalink
fix fluid p2p voiding excess liquids
Browse files Browse the repository at this point in the history
  • Loading branch information
fscan committed Sep 14, 2017
1 parent bd8f43a commit 54c0ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/appeng/parts/p2p/PartP2PFluids.java
Expand Up @@ -201,7 +201,7 @@ public int fill( FluidStack resource, boolean doFill )
i = list.iterator();
int used = 0;

while( i.hasNext() )
while( i.hasNext() && available > 0 )
{
final PartP2PFluids l = i.next();

Expand All @@ -223,7 +223,7 @@ public int fill( FluidStack resource, boolean doFill )
}

available -= insert.amount;
used += insert.amount;
used += l.tmpUsed;
}

if( stack.pop() != this )
Expand Down

0 comments on commit 54c0ce4

Please sign in to comment.