fixed derp
should check the stack has enough for the recipe, not the reverse.
This commit is contained in:
parent
167d0d6426
commit
e32eef5d1a
1 changed files with 2 additions and 2 deletions
|
@ -233,10 +233,10 @@ public class TileRefinery extends TileMachine implements ITankContainer, IPowerR
|
|||
if(liquid == null)
|
||||
return true;
|
||||
|
||||
if(liquid.containsLiquid(new LiquidStack(slot1.liquidId, slot1.quantity, 0))) {
|
||||
if(new LiquidStack(slot1.liquidId, slot1.quantity, 0).containsLiquid(liquid)) {
|
||||
slot1.quantity -= liquid.amount;
|
||||
return true;
|
||||
} else if(liquid.containsLiquid(new LiquidStack(slot2.liquidId, slot2.quantity, 0))) {
|
||||
} else if(new LiquidStack(slot2.liquidId, slot2.quantity, 0).containsLiquid(liquid)) {
|
||||
slot2.quantity -= liquid.amount;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue