mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 09:39:05 +00:00
Brush Color Setting and Changing Interaction
This commit is contained in:
1 parent
bd2eb0fe16
commit
4b8e0cd8c3
11 files changed
+109
-34
No files matched your search
@@ -40,7 +40,7 @@ public class BlockShortLamp extends BlockContainer {
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player,
|
||||
int side, float hitX, float hitY, float hitZ) {
|
||||
ItemStack item = player.inventory.getCurrentItem();
|
||||
if (item == null || item.getItem() != Items.dye)
|
||||
if(TileColorable.doNotAllowModification(item))
|
||||
return false;
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
TileColorable tile = (TileColorable) world.getTileEntity(x, y, z);
|
||||
|
||||
Reference in new issue
Block a user