Glowstone-Legacy icon indicating copy to clipboard operation
Glowstone-Legacy copied to clipboard

Duplicating items

Open parkervcp opened this issue 11 years ago • 5 comments

You can duplicate items in the crafting area by just clicking around in the slots after crafting the item. If you double click it remakes the stack and lets you make another item. It took a few tries but after a few minutes I got the hang of it.

parkervcp avatar Sep 07 '14 19:09 parkervcp

Could you try to explain, step-by-step, the process involved?

SpaceManiac avatar Sep 08 '14 06:09 SpaceManiac

How to reproduce on master branch:

  1. Start new server
  2. Log in and give yourself four wood
  3. Open inventory and place the wood into the crafting area as if you were crafting a workbench
  4. Take the workbench and place it in an empty inventory slot (all as you'd expect it till this point)
  5. Double click in the crafting are -> you have one wood on your cursor
  6. Place the wood in your inventory -> four wood are back

Johni0702 avatar Sep 08 '14 09:09 Johni0702

I ran into this bug with the current code, and found another way to reproduce it:

  1. Get 1 log
  2. Craft log into 4 planks
  3. Put 4 planks in crafting area (like crafting a crafting table)
  4. Pick up crafting table from output slot (ingredients dissapear)
  5. Place table in inventory
  6. Close and reopen inventory
  7. Ingredients and output are back (but attempting to craft creates ghost items)
  8. Pick up and place back down one of the crafting ingredients (now crafting creates real items)
  9. Repeat for as many crafting tables as you want

The tables can be verified as not ghost items by placing them down. The can be interacted with like normal crafting tables. The duplicated items can also be stacked.

warriordog avatar Oct 27 '14 20:10 warriordog

For anyone interested in fixing this: This is due to CraftingManager.removeItems not yet being implemented and due to it never being called in the first place (which is fixed in PR #484).

Johni0702 avatar Oct 28 '14 11:10 Johni0702

Just stopping by to link this to #1. I'm leaving this ticket open because it is too large to add to a checklist, but relevant enough to be linked to the parent ticket.

turt2live avatar Jan 15 '15 04:01 turt2live