mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed alicorn amulet not updating when worn as a bauble.
This commit is contained in:
parent
8d1a7ea400
commit
918dd852fd
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@ import baubles.api.BaubleType;
|
||||||
import baubles.api.BaublesApi;
|
import baubles.api.BaublesApi;
|
||||||
import baubles.api.IBauble;
|
import baubles.api.IBauble;
|
||||||
import baubles.api.cap.IBaublesItemHandler;
|
import baubles.api.cap.IBaublesItemHandler;
|
||||||
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
@ -25,6 +26,13 @@ public class BaubleAlicornAmulet extends ItemAlicornAmulet implements IBauble {
|
||||||
return BaubleType.AMULET;
|
return BaubleType.AMULET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
|
||||||
|
if (player instanceof EntityPlayer) {
|
||||||
|
onArmorTick(player.world, (EntityPlayer)player, itemstack);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
|
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
|
||||||
ItemStack itemstack = player.getHeldItem(hand);
|
ItemStack itemstack = player.getHeldItem(hand);
|
||||||
|
|
Loading…
Reference in a new issue