diff --git a/src/dark/farmtech/FarmTech.java b/src/dark/farmtech/FarmTech.java index ad947f57..382f2cc1 100644 --- a/src/dark/farmtech/FarmTech.java +++ b/src/dark/farmtech/FarmTech.java @@ -25,8 +25,8 @@ import cpw.mods.fml.common.registry.GameRegistry; import dark.api.farm.CropAutomationHandler; import dark.api.farm.DecayMatterList; import dark.core.common.DarkMain; +import dark.core.prefab.ItemBlockHolder; import dark.core.prefab.ModPrefab; -import dark.core.prefab.items.ItemBlockHolder; import dark.core.registration.ModObjectRegistry; import dark.farmtech.blocks.BlockFarmSoil; import dark.farmtech.entities.EntityFarmEgg; diff --git a/src/dark/farmtech/blocks/BlockCrops.java b/src/dark/farmtech/blocks/BlockCrops.java index 28163ab6..d2dae3be 100644 --- a/src/dark/farmtech/blocks/BlockCrops.java +++ b/src/dark/farmtech/blocks/BlockCrops.java @@ -2,10 +2,13 @@ package dark.farmtech.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; +import net.minecraft.world.World; +import net.minecraftforge.common.EnumPlantType; +import net.minecraftforge.common.IPlantable; import dark.core.prefab.ModPrefab; import dark.farmtech.FarmTech; -public class BlockCrops extends Block +public class BlockCrops extends Block implements IPlantable { public BlockCrops() @@ -14,4 +17,22 @@ public class BlockCrops extends Block this.setUnlocalizedName("FarmCrops"); } + @Override + public EnumPlantType getPlantType(World world, int x, int y, int z) + { + return EnumPlantType.Plains; + } + + @Override + public int getPlantID(World world, int x, int y, int z) + { + return this.blockID; + } + + @Override + public int getPlantMetadata(World world, int x, int y, int z) + { + return -1; + } + } diff --git a/src/dark/farmtech/item/ItemFarmFood.java b/src/dark/farmtech/item/ItemFarmFood.java index 040369ce..84a699dd 100644 --- a/src/dark/farmtech/item/ItemFarmFood.java +++ b/src/dark/farmtech/item/ItemFarmFood.java @@ -17,7 +17,7 @@ import net.minecraftforge.oredict.OreDictionary; import universalelectricity.core.vector.Vector3; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import dark.core.prefab.IExtraInfo.IExtraItemInfo; +import dark.core.interfaces.IExtraInfo.IExtraItemInfo; import dark.core.prefab.ModPrefab; import dark.core.prefab.helpers.ItemWorldHelper; import dark.farmtech.FarmTech;