mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 05:14:28 +00:00
Hex Color Update
This commit is contained in:
1 parent
3c610e7105
commit
3a00d08304
50 files changed
+456
-360
No files matched your search
@@ -25,6 +25,8 @@ import noppes.npcs.blocks.tiles.TileTallLamp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static kamkeel.npcs.util.ColorUtil.colorTableInts;
|
||||
|
||||
public class BlockTallLamp extends BlockContainer {
|
||||
|
||||
public int renderId = -1;
|
||||
@@ -43,7 +45,7 @@ public class BlockTallLamp extends BlockContainer {
|
||||
if(meta >= 7)
|
||||
j--;
|
||||
TileColorable tile = (TileColorable) par1World.getTileEntity(i, j, k);
|
||||
int color = BlockColored.func_150031_c(item.getItemDamage());
|
||||
int color = colorTableInts[BlockColored.func_150031_c(item.getItemDamage())];
|
||||
if(tile.color != color){
|
||||
NoppesUtilServer.consumeItemStack(1, player);
|
||||
tile.color = color;
|
||||
@@ -88,7 +90,7 @@ public class BlockTallLamp extends BlockContainer {
|
||||
|
||||
TileColorable tile = (TileColorable) par1World.getTileEntity(par2, par3, par4);
|
||||
tile.rotation = l;
|
||||
tile.color = 15 - par6ItemStack.getItemDamage();
|
||||
tile.color = colorTableInts[15 - par6ItemStack.getItemDamage()];
|
||||
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, par6ItemStack.getItemDamage() , 2);
|
||||
par1World.setBlock(par2, par3 + 1, par4, this, par6ItemStack.getItemDamage() + 7, 2);
|
||||
|
||||
Reference in new issue
Block a user