mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Fix #771 Don't NPE in AgriCraft Plugin if Farming is disabled.
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user