mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 12:43:16 +00:00
Banner Modifies Banner Trims
This commit is contained in:
1 parent
eda6b72058
commit
e85c4c9259
5 files changed
+35
-3
No files matched your search
@@ -23,6 +23,7 @@ import net.minecraft.world.World;
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.blocks.tiles.TileBanner;
|
||||
import noppes.npcs.blocks.tiles.TileColorable;
|
||||
import noppes.npcs.items.ItemNpcTool;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -42,6 +43,10 @@ public class BlockBanner extends BlockContainer{
|
||||
ItemStack item = player.inventory.getCurrentItem();
|
||||
if(item == null)
|
||||
return false;
|
||||
|
||||
if(item.getItem() != null && item.getItem() instanceof ItemNpcTool && item.getItemDamage() == 0)
|
||||
return false;
|
||||
|
||||
int meta = par1World.getBlockMetadata(i, j, k);
|
||||
if(meta >= 7)
|
||||
j--;
|
||||
|
||||
Reference in new issue
Block a user