mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 16:29:39 +00:00
Brush Setting and Getting Packets
This commit is contained in:
1 parent
4b8e0cd8c3
commit
6193f77bf5
12 files changed
+146
-58
No files matched your search
@@ -10,7 +10,6 @@ import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
@@ -42,8 +41,8 @@ public class BlockWallBanner extends BlockContainer{
|
||||
TileWallBanner tile = (TileWallBanner) par1World.getTileEntity(i, j, k);
|
||||
if(tile.canEdit())
|
||||
return true;
|
||||
else if(TileColorable.doNotAllowModification(item))
|
||||
return false;
|
||||
else if(TileColorable.allowColorChange(item) != TileColorable.ColorChangeType.DYE)
|
||||
return false;
|
||||
|
||||
int color = colorTableInts[BlockColored.func_150031_c(item.getItemDamage())];
|
||||
if(tile.color != color){
|
||||
|
||||
Reference in new issue
Block a user