fixed derp

should check the stack has enough for the recipe, not the reverse.
This commit is contained in:
Andrew Hill 2012-08-31 23:56:27 +10:00
parent 167d0d6426
commit e32eef5d1a

View file

@ -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;
}