Changed implementation of custom items' tick event to be more similar to 1.12's.

This commit is contained in:
Luis C.M committed 2023-03-29 21:23:09 -05:00
1 parent 7b1b304f75
commit fc9e85c35a
2 files changed
+10 -6

No files matched your search

@@ -34,12 +34,6 @@ public class ItemScripted extends Item implements ItemRenderInterface {
setHasSubtypes(true);
}
@Override
public void onUpdate(ItemStack stack, World world, Entity player, int p_77663_4_, boolean p_77663_5_) {
IItemStack istack = NpcAPI.Instance().getIItemStack(stack);
EventHooks.onScriptItemUpdate((ScriptCustomItem) istack, (EntityPlayer) player);
}
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister par1IconRegister){
this.itemIcon = Items.iron_pickaxe.getIconFromDamage(0);