V0idWa1k3r / SmartBackpacks

A backpack mod for minecraft that adds backpacks of varying sizes that can be upgraded with various upgrades.
GNU Lesser General Public License v3.0
6 stars 8 forks source link

Dupe with backpack magnet #12

Closed mrdeadlocked closed 5 years ago

mrdeadlocked commented 5 years ago

Having the magnet on the backpack causes items to duplicate.

The best way I've found to duplicate is using the "Place On Block' Feature from Draconic Evolution. If you spam place the item on the wall while right-clicking the wall at the same time you will get multiple of the item. I've tested it by taking the magnet upgrade out and following the same steps no dupe. Put the magnet upgrade back on and it dupe.

2018-09-15_16-42-57

V0idWa1k3r commented 5 years ago

Are you sure this isn't a client-only "phantom item" and is an actual item that you get on the server? All that the magnet does is calls Entity#onCollideWithPlayer, the same thing minecraft calls when you do physicaly collide with the item. Can you replicate this with anything apart from DE's place-item feature?

mrdeadlocked commented 5 years ago

I've had the same thing happen with Reinforced drums and other placed blocks. I have logged off and on and used the items until broken. They don't appear to be phantom. The place item function is just the easiest to reproduce.

V0idWa1k3r commented 5 years ago

Hopefully fixed in the next version, at least I am unable to reproduce the issue any more. If it still keeps happening after the next release then it is a mod interaction issue.

mrdeadlocked commented 5 years ago

I ran the same test on the newest version and I couldn't reproduce the dupe.