mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Rainbow tinted paintslinger lenses will no longer change the blocks' colors twice.
This commit is contained in:
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];
|
||||
|
||||
Reference in new issue
Block a user