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.
This commit is contained in:
Sciencei 2015-01-25 04:44:05 -05:00
parent 389910f716
commit 30ebc597ee

View file

@ -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);