From 96da628dfcd3626a5d160b9c2ef4b060262f61e5 Mon Sep 17 00:00:00 2001 From: Forstride Date: Tue, 24 Apr 2018 19:11:04 -0400 Subject: [PATCH] Fixed NPE with creative tab (Closes #1250) --- .../biomesoplenty/common/util/inventory/CreativeTabBOP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java b/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java index 487dad395..29dec1a39 100644 --- a/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java +++ b/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java @@ -49,7 +49,7 @@ public class CreativeTabBOP extends CreativeTabs for (Fluid bucketFluid : FluidRegistry.getBucketFluids()) { - if (bucketFluid.getBlock().getRegistryName().getResourceDomain().equals(BiomesOPlenty.MOD_ID)) + if (bucketFluid.getBlock() != null && bucketFluid.getBlock().getRegistryName().getResourceDomain().equals(BiomesOPlenty.MOD_ID)) { ItemStack itemstack = UniversalBucket.getFilledBucket(ForgeModContainer.getInstance().universalBucket, bucketFluid); itemList.add(itemstack);