From 4902430716bcc26e684bc75c6cb29815e2c783aa Mon Sep 17 00:00:00 2001 From: TehNut Date: Sun, 11 Jan 2015 20:40:03 -0800 Subject: [PATCH] Tom pulled a Tom --- .../sanguimancy/rituals/RitualEffectFelling.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectFelling.java b/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectFelling.java index f8de46b..511fba5 100644 --- a/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectFelling.java +++ b/src/main/java/tombenpotter/sanguimancy/rituals/RitualEffectFelling.java @@ -8,6 +8,8 @@ import WayofTime.alchemicalWizardry.common.Int3; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; import cpw.mods.fml.client.FMLClientHandler; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; @@ -92,8 +94,7 @@ public void performEffect(IMasterRitualStone ritualStone) { RitualUtils.placeInInventory(block, world, int3.xCoord, int3.yCoord, int3.zCoord, tileEntity); } world.setBlockToAir(int3.xCoord, int3.yCoord, int3.zCoord); - EntityColoredFlameFX particle = new EntityColoredFlameFX(world, int3.xCoord, int3.yCoord, int3.zCoord, 0, 0, 0, 159, 70, 18); - FMLClientHandler.instance().getClient().effectRenderer.addEffect(particle); + addParticles(world, int3); SoulNetworkHandler.syphonFromNetwork(owner, getCostPerRefresh()); } } @@ -102,6 +103,12 @@ public void performEffect(IMasterRitualStone ritualStone) { } } + @SideOnly(Side.CLIENT) + public static void addParticles(World world, Int3 int3) { + EntityColoredFlameFX particle = new EntityColoredFlameFX(world, int3.xCoord, int3.yCoord, int3.zCoord, 0, 0, 0, 159, 70, 18); + FMLClientHandler.instance().getClient().effectRenderer.addEffect(particle); + } + @Override public int getCostPerRefresh() { return 30;