Fixed a crash

This commit is contained in:
Aidan C. Brady 2015-02-25 09:05:08 -05:00
parent 3ba4c738a8
commit 701cdfd7bd

View file

@ -26,7 +26,7 @@ public class FluidInput extends MachineInput<FluidInput>
public boolean useFluid(FluidTank fluidTank, boolean deplete, int scale)
{
if(fluidTank.getFluid().containsFluid(ingredient))
if(fluidTank.getFluid() != null && fluidTank.getFluid().containsFluid(ingredient))
{
fluidTank.drain(ingredient.amount*scale, deplete);
return true;