Fixed Rainbow Tinted lenses not rendering when there's a block above the spreader. Fixes #95

This commit is contained in:
Vasco Lavos committed 2014-07-08 17:47:50 +01:00
1 parent e1fa26bf44
commit 1d3bbb0b2d
2 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ public class FXWisp extends EntityFX {
motionY *= 0.98000001907348633D;
motionZ *= 0.98000001907348633D;
}
public void setGravity(float value) {
particleGravity = value;
}
@@ -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) {