From 30ebc597eefb12cf8f11e7c05d2024ac09405e8d Mon Sep 17 00:00:00 2001 From: Sciencei Date: Sun, 25 Jan 2015 04:44:05 -0500 Subject: [PATCH] Expanded affected plants Now checks for IGrowable (basically the 'bonemealable' class) as well as IPlantable. Not 100% sure why, but some mods use it instead of IPlantable. Off the top of my head is Pneumaticraft, as I was sent here by this issue https://github.com/MineMaarten/PneumaticCraft/issues/386. --- .../alchemicalWizardry/common/rituals/RitualEffectGrowth.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectGrowth.java b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectGrowth.java index c3272f09..00bb85b2 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectGrowth.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectGrowth.java @@ -9,6 +9,7 @@ import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; import net.minecraft.block.Block; import net.minecraft.world.World; import net.minecraftforge.common.IPlantable; +import net.minecraftforge.common.IGrowable; import java.util.ArrayList; import java.util.List; @@ -73,7 +74,7 @@ public class RitualEffectGrowth extends RitualEffect { Block block = world.getBlock(x + i, y + 2, z + j); - if (block instanceof IPlantable) + if (block instanceof IPlantable || block instanceof IGrowable) { { SpellHelper.sendIndexedParticleToAllAround(world, x, y, z, 20, world.provider.dimensionId, 3, x, y, z);