mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Add extra null check to canFillFluidType (#1006)
Prevents crashes when canFillFluidType(null) is called
This commit is contained in:
parent
b13d7a031e
commit
82de1c3dd2
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public class TileEntityOilGenerator extends TileEntityBase implements ISharingEn
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canFillFluidType(FluidStack stack){
|
public boolean canFillFluidType(FluidStack stack){
|
||||||
Fluid fluid = stack.getFluid();
|
Fluid fluid = stack == null ? null : stack.getFluid();
|
||||||
return fluid != null && getRecipeForFluid(fluid.getName()) != null;
|
return fluid != null && getRecipeForFluid(fluid.getName()) != null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue