Make Forestry a soft-dependency (#55)

* Update Buildscript

* Only load Forestry Farmer if Forestry is installed
This commit is contained in:
glowredman authored and GitHub committed 2022-02-12 07:38:56 -06:00
1 parent 13634ef7c8
commit 979957a4c0
3 files changed
+70 -68

No files matched your search

@@ -1,8 +1,5 @@
package crazypants.enderio.machine.farm;
import java.util.Iterator;
import java.util.regex.Pattern;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
@@ -38,7 +35,9 @@ public final class FarmersRegistry {
addIC2();
addThaumcraft();
addFlowers();
ForestryFarmer.init();
if (Loader.isModLoaded("Forestry")) {
ForestryFarmer.init();
}
FarmersCommune.joinCommune(new StemFarmer(Blocks.reeds, new ItemStack(Items.reeds)));
FarmersCommune.joinCommune(new StemFarmer(Blocks.cactus, new ItemStack(Blocks.cactus)));