fixed right-click issue with accessories
This commit is contained in:
parent
22c5853038
commit
3e74637ea1
1 changed files with 1 additions and 2 deletions
|
@ -97,9 +97,8 @@ public class ItemAccessory extends Item
|
|||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStack, World worldIn, EntityPlayer player, EnumHand hand)
|
||||
{
|
||||
if (itemStack != null)
|
||||
if (itemStack != null && PlayerAether.get(player).accessories.setInventoryAccessory(itemStack.copy()))
|
||||
{
|
||||
PlayerAether.get(player).accessories.setInventoryAccessory(itemStack.copy());
|
||||
--itemStack.stackSize;
|
||||
|
||||
return new ActionResult<ItemStack>(EnumActionResult.SUCCESS, itemStack);
|
||||
|
|
Loading…
Reference in a new issue