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

@@ -20,6 +20,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import noppes.npcs.NoppesUtilServer;
import noppes.npcs.blocks.tiles.TileColorable;
import noppes.npcs.blocks.tiles.TileWallBanner;
import java.util.List;
@@ -41,7 +42,7 @@ public class BlockWallBanner extends BlockContainer{
TileWallBanner tile = (TileWallBanner) par1World.getTileEntity(i, j, k);
if(tile.canEdit())
return true;
else if(item.getItem() != Items.dye)
else if(TileColorable.doNotAllowModification(item))
return false;
int color = colorTableInts[BlockColored.func_150031_c(item.getItemDamage())];