Duplication Glitch with Item Sack
RaresKool opened this issue ยท 5 comments
A player recently discovered this glitch by accident and reported it to me.
Can I replicate it? Yes! https://youtu.be/OfCL3AoVXMo
How to do it:
- Set the item sack on auto pick up, and whitelist mode with the item of choice.
- Hold the item you want to duplicate, then drop it.
- Upon picking it up you will have it in your inventory but also in your item sack.
Try removing mods until this is fixed. It looks like some mod isn't handling the item pickup event properly.
I will contact the modpack author about this. I will also try to get in contact with SpongeForge about this.
On the side note, when this glitch occurs, 1 out of 7 times the server crashes.
This is a note to the respective author of the mod causing this:
When using the EntityItemPickupEvent, whichever processing is supposed to happen with the item needs to be cancelled if the event is already set to Event.Result.ALLOW, because otherwise Item Duplication will occur in some cases. I discovered this when working with Forestry, and it seems to be a quirk in the way the event is handled.
Doing something like this should fix the issue.
Updated my comment above, meant to say modpack not mod
Another side note. When the Item Sack is set to BlackList mode the glitch does not occur.