Baubles

Baubles

116M Downloads

DUPE Glitch

RobertSkalko opened this issue ยท 0 comments

commented

Loaded forge + baubles

Put miner ring in shield slot

Right click empty hotbar slot (in survival mode)

2 rings!

fixed it myself for my items by deleting the auto equip functionality

   @Override
    public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
	// CAUSE DUPE GLITCH

	/*
	 * if (!world.isRemote) { IBaublesItemHandler baubles =
	 * BaublesApi.getBaublesHandler(player); for (int i = 0; i < baubles.getSlots();
	 * i++) if ((baubles.getStackInSlot(i) == null ||
	 * baubles.getStackInSlot(i).isEmpty()) && baubles.isItemValidForSlot(i,
	 * player.getHeldItem(hand), player)) { baubles.setStackInSlot(i,
	 * player.getHeldItem(hand).copy()); if (!player.capabilities.isCreativeMode) {
	 * player.inventory.setInventorySlotContents(player.inventory.currentItem,
	 * ItemStack.EMPTY); } onEquipped(player.getHeldItem(hand), player); break; } }
	 */
	return new ActionResult<ItemStack>(EnumActionResult.SUCCESS, player.getHeldItem(hand));
    }