From 1d3bbb0b2d26c01620f0b3e92bfbde283d786e8d Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Tue, 8 Jul 2014 17:47:50 +0100 Subject: [PATCH] Fixed Rainbow Tinted lenses not rendering when there's a block above the spreader. Fixes #95 --- MODSRC/vazkii/botania/client/fx/FXWisp.java | 2 +- .../vazkii/botania/common/item/ItemLens.java | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MODSRC/vazkii/botania/client/fx/FXWisp.java b/MODSRC/vazkii/botania/client/fx/FXWisp.java index ed5de2164..9da8bca0f 100644 --- a/MODSRC/vazkii/botania/client/fx/FXWisp.java +++ b/MODSRC/vazkii/botania/client/fx/FXWisp.java @@ -134,7 +134,7 @@ public class FXWisp extends EntityFX { motionY *= 0.98000001907348633D; motionZ *= 0.98000001907348633D; } - + public void setGravity(float value) { particleGravity = value; } diff --git a/MODSRC/vazkii/botania/common/item/ItemLens.java b/MODSRC/vazkii/botania/common/item/ItemLens.java index 9b1593ffc..255e81496 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLens.java +++ b/MODSRC/vazkii/botania/common/item/ItemLens.java @@ -355,11 +355,11 @@ public class ItemLens extends ItemMod implements ILens { @Override public void updateBurst(IManaBurst burst, ItemStack stack) { - int storedColor = getStoredColor(stack); - if(storedColor == 16) - burst.setColor(getLensColor(stack)); - EntityThrowable entity = (EntityThrowable) burst; + int storedColor = getStoredColor(stack); + + if(storedColor == 16 && entity.worldObj.isRemote) + burst.setColor(getLensColor(stack)); boolean magnetized = entity.getEntityData().hasKey("Botania:Magnetized"); switch(stack.getItemDamage()) { @@ -480,11 +480,11 @@ public class ItemLens extends ItemMod implements ILens { @Override public boolean doParticles(IManaBurst burst, ItemStack stack) { - int storedColor = getStoredColor(stack); - if(storedColor == 16 && !burst.isFake()) - return ((EntityThrowable) burst).ticksExisted > 5; - - return true; +// int storedColor = getStoredColor(stack); +// if(storedColor == 16 && !burst.isFake()) +// return ((EntityThrowable) burst).ticksExisted > 5; + + return true; } public static void blacklistLenses(int lens1, int lens2) {