Add missing null check to Growthcraft plugin.

This commit is contained in:
Nirek-K committed 2016-02-10 08:19:40 -06:00
1 parent bbd39ea5c7
commit 0876a50be2
1 file changed
+5 -3
@@ -93,9 +93,11 @@ public class PluginGrowthCraft extends ForestryPlugin {
}
ItemStack emptyComb = new ItemStack(GameRegistry.findItem("Growthcraft|Bees", "grc.honeyComb"), 1, 0);
RecipeManagers.centrifugeManager.addRecipe(20, emptyComb, ImmutableMap.of(
PluginCore.items.beeswax.getItemStack(), 1.0f)
);
if (emptyComb != null) {
RecipeManagers.centrifugeManager.addRecipe(20, emptyComb, ImmutableMap.of(
PluginCore.items.beeswax.getItemStack(), 1.0f)
);
}
if (PluginManager.Module.APICULTURE.isEnabled()) {
ItemStack fullComb = new ItemStack(GameRegistry.findItem("Growthcraft|Bees", "grc.honeyComb"), 1, 1);