Fixed NPE with creative tab (Closes #1250)

This commit is contained in:
Forstride 2018-04-24 19:11:04 -04:00
parent 8079fe3f86
commit 96da628dfc

View file

@ -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);