mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Forgot you need to apply the effects too
This commit is contained in:
parent
373a2c64cd
commit
5cfe5a63d6
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,16 @@ public class BaubleAlicornAmulet extends ItemAlicornAmulet implements IBauble {
|
||||||
return BaubleType.AMULET;
|
return BaubleType.AMULET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEquipped(ItemStack itemstack, EntityLivingBase player) {
|
||||||
|
player.getAttributeMap().applyAttributeModifiers(itemstack.getAttributeModifiers(getEquipmentSlot(itemstack)));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUnequipped(ItemStack itemstack, EntityLivingBase player) {
|
||||||
|
player.getAttributeMap().removeAttributeModifiers(itemstack.getAttributeModifiers(getEquipmentSlot(itemstack)));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
|
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
|
||||||
if (player instanceof EntityPlayer) {
|
if (player instanceof EntityPlayer) {
|
||||||
|
|
Loading…
Reference in a new issue