mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Only allow the bauble version to go into the bauble slot (breaks shift-clicking)
This commit is contained in:
parent
5cfe5a63d6
commit
33534ecea5
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ import baubles.api.BaubleType;
|
|||
import baubles.api.BaublesApi;
|
||||
import baubles.api.IBauble;
|
||||
import baubles.api.cap.IBaublesItemHandler;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
|
@ -60,6 +61,11 @@ public class BaubleAlicornAmulet extends ItemAlicornAmulet implements IBauble {
|
|||
return new ActionResult<ItemStack>(EnumActionResult.FAIL, itemstack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidArmor(ItemStack stack, EntityEquipmentSlot armorType, Entity entity) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityEquipmentSlot getEquipmentSlot() {
|
||||
return EntityEquipmentSlot.MAINHAND;
|
||||
|
|
Loading…
Reference in a new issue