mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 02:55:26 +00:00
Changed implementation of custom items' tick event to be more similar to 1.12's.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user