- 31
- 1
Почему когда держу предмет в руке мне не пишет "Test"
Код:
public void getCurrentItem(World par2World, EntityPlayer player) {
if(!par2World.isRemote) {
ItemStack is = player.inventory.getCurrentItem();
if (is != null && is.getItem().itemID == Zcustoms.weapon.itemID) {
player.sendChatToPlayer(EnumChatFormatting.AQUA + "Test");
}
}
}
Код:
public void getCurrentItem(World par2World, EntityPlayer player) {
if(!par2World.isRemote) {
ItemStack is = player.inventory.getCurrentItem();
if (is != null && is.getItem().itemID == Zcustoms.weapon.itemID) {
player.sendChatToPlayer(EnumChatFormatting.AQUA + "Test");
}
}
}