Brush Color Setting and Changing Interaction

This commit is contained in:
Kam committed 2025-02-13 15:35:45 -05:00
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);