Rainbow tinted paintslinger lenses will no longer change the blocks' colors twice.

This commit is contained in:
Vasco Lavos committed 2014-07-02 22:27:28 +01:00
1 parent 0a44dd2ecb
commit 70c081a428
1 file changed
+2 -1
@@ -329,7 +329,8 @@ public class ItemLens extends ItemMod implements ILens {
int metaThere = entity.worldObj.getBlockMetadata(coords.posX, coords.posY, coords.posZ);
if(metaThere != placeColor) {
entity.worldObj.setBlockMetadataWithNotify(coords.posX, coords.posY, coords.posZ, placeColor, 2);
if(!entity.worldObj.isRemote)
entity.worldObj.setBlockMetadataWithNotify(coords.posX, coords.posY, coords.posZ, placeColor, 2);
float[] color = EntitySheep.fleeceColorTable[placeColor];
float r = color[0];
float g = color[1];