Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for saplings in new Forestry farms using IMC.

  • Loading branch information...
commit a21f32e76f0c6c97733741a44e9c77650491ec9e 1 parent acad3f9
@SirSengir authored
View
5 extrabiomes/src/extrabiomes/module/amica/forestry/ForestryPlugin.java
@@ -22,6 +22,8 @@
import com.google.common.base.Optional;
+import cpw.mods.fml.common.event.FMLInterModComms;
+
import extrabiomes.Extrabiomes;
import extrabiomes.api.PluginEvent;
import extrabiomes.api.Stuff;
@@ -129,6 +131,9 @@ private void addSaplings() {
BlockCustomSapling.setForestrySoilID(soil.get().itemID);
}
arborealCrops.add(new CropProviderSapling());
+
+ for(ItemStack sapling : ForestryModHelper.getSaplings())
+ FMLInterModComms.sendMessage("Forestry", "add-farmable-sapling", String.format("farmArboreal@%s.%s", sapling.itemID, sapling.getItemDamage()));
}
private LiquidStack getLiquidStack(String name) throws Exception {
Please sign in to comment.
Something went wrong with that request. Please try again.