Fixed a crash
This commit is contained in:
parent
3ba4c738a8
commit
701cdfd7bd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue