mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Make Forestry a soft-dependency (#55)
* Update Buildscript * Only load Forestry Farmer if Forestry is installed
This commit is contained in:
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)));
|
||||
|
||||
Reference in new issue
Block a user