Fix #771 Don't NPE in AgriCraft Plugin if Farming is disabled.

This commit is contained in:
Nirek-K committed 2015-07-25 11:10:50 -05:00
1 parent 953ffd4fd1
commit 6845a0f71b
1 file changed
+1 -1
@@ -88,7 +88,7 @@ public class PluginAgriCraft extends ForestryPlugin {
}
Block cropBlock = GameRegistry.findBlock(AgriCraft, "crops");
if (cropBlock != null) {
if (cropBlock != null && PluginManager.Module.FARMING.isEnabled()) {
Farmables.farmables.get("farmOrchard").add(new FarmableBasicAgricraft(cropBlock, 7));
}
}