Fix NPE - Closes #1794
This commit is contained in:
parent
9671179453
commit
230d757a89
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public abstract class FluidRegistry
|
|||
*/
|
||||
public static boolean isFluidRegistered(Fluid fluid)
|
||||
{
|
||||
return fluids.containsKey(fluid.getName());
|
||||
return fluid != null && fluids.containsKey(fluid.getName());
|
||||
}
|
||||
|
||||
public static boolean isFluidRegistered(String fluidName)
|
||||
|
|
Loading…
Reference in a new issue