diff --git a/MODSRC/vazkii/botania/common/entity/EntitySignalFlare.java b/MODSRC/vazkii/botania/common/entity/EntitySignalFlare.java index b58de79cd..adee368e4 100644 --- a/MODSRC/vazkii/botania/common/entity/EntitySignalFlare.java +++ b/MODSRC/vazkii/botania/common/entity/EntitySignalFlare.java @@ -43,15 +43,18 @@ public class EntitySignalFlare extends Entity { if(ticksExisted % 10 == 0) playSound("random.fuse", 1F, 1F); - float[] color = EntitySheep.fleeceColorTable[getColor()]; + int color = getColor(); + if(color < 16) { + float[] colorArray = EntitySheep.fleeceColorTable[color]; - Botania.proxy.setWispFXDistanceLimit(false); - for(int i = 0; i < 3; i++) - Botania.proxy.wispFX(worldObj, posX, posY, posZ + 0.5, color[0], color[1], color[2], (float) Math.random() * 5 + 1F, (float) (Math.random() - 0.5F), 10F * (float) Math.sqrt((256F / (256F - (float) posY))), (float) (Math.random() - 0.5F)); + Botania.proxy.setWispFXDistanceLimit(false); + for(int i = 0; i < 3; i++) + Botania.proxy.wispFX(worldObj, posX, posY, posZ + 0.5, colorArray[0], colorArray[1], colorArray[2], (float) Math.random() * 5 + 1F, (float) (Math.random() - 0.5F), 10F * (float) Math.sqrt((256F / (256F - (float) posY))), (float) (Math.random() - 0.5F)); - for(int i = 0; i < 4; i++) - Botania.proxy.wispFX(worldObj, posX + 0.5, 256, posZ + 0.5, color[0], color[1], color[2], (float) Math.random() * 15 + 8F, (float) (Math.random() - 0.5F) * 8F, 0F, (float) (Math.random() - 0.5F) * 8F); - Botania.proxy.setWispFXDistanceLimit(true); + for(int i = 0; i < 4; i++) + Botania.proxy.wispFX(worldObj, posX + 0.5, 256, posZ + 0.5, colorArray[0], colorArray[1], colorArray[2], (float) Math.random() * 15 + 8F, (float) (Math.random() - 0.5F) * 8F, 0F, (float) (Math.random() - 0.5F) * 8F); + Botania.proxy.setWispFXDistanceLimit(true); + } } }