From ac58bb2f5a558cdfd4cdb8b6c74af8a2720f37f5 Mon Sep 17 00:00:00 2001 From: viliml Date: Sat, 14 Sep 2013 20:16:46 +0200 Subject: [PATCH] Prevent NPE in fluid lookup for block --- common/net/minecraftforge/fluids/FluidRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/fluids/FluidRegistry.java b/common/net/minecraftforge/fluids/FluidRegistry.java index df4eaa174..0eb95ca36 100644 --- a/common/net/minecraftforge/fluids/FluidRegistry.java +++ b/common/net/minecraftforge/fluids/FluidRegistry.java @@ -1,4 +1,3 @@ - package net.minecraftforge.fluids; import java.util.HashMap; @@ -133,6 +132,7 @@ public abstract class FluidRegistry { if (fluidBlocks == null) { + fluidBlocks = new BiMap(); for (Fluid fluid : fluids.values()) { if (fluid.canBePlacedInWorld() && Block.blocksList[fluid.getBlockID()] != null)