Prevent NPE in Coolant API
This commit is contained in:
parent
b301571629
commit
14dc0014c9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ public final class IronEngineCoolant {
|
|||
}
|
||||
|
||||
public static Coolant getCoolant(FluidStack fluidStack) {
|
||||
return fluidStack != null ? liquidCoolants.get(fluidStack.getFluid().getName()) : null;
|
||||
return fluidStack != null && fluidStack.getFluid() != null ? liquidCoolants.get(fluidStack.getFluid().getName()) : null;
|
||||
}
|
||||
|
||||
private IronEngineCoolant() {
|
||||
|
|
Loading…
Reference in a new issue