Fixed NPE with creative tab (Closes #1250)
This commit is contained in:
parent
8079fe3f86
commit
96da628dfc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue