mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 10:22:25 +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
@@ -21,6 +21,7 @@ import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.blocks.tiles.TileBanner;
|
||||
import noppes.npcs.blocks.tiles.TileColorable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -45,7 +46,7 @@ public class BlockBanner extends BlockContainer{
|
||||
TileBanner tile = (TileBanner) 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())];
|
||||
|
||||
Reference in new issue
Block a user