codetaylor / dropt-1.12

Flexible block drop strategies.
https://minecraft.curseforge.com/projects/dropt
Other
6 stars 2 forks source link

Replacing block drops not working well with building gadget #74

Open misterplus opened 4 years ago

misterplus commented 4 years ago

Issue Description

When replacing a block's drop with dropt, then place it in-game with the building gadget, then undo the placement, the new drops will drop and the block goes back to your inventory as well. Resulting in duping.

What Happens

What You Expect to Happen

The block only goes back to your inventory, and does not drop again.

Script

I have two scripts, I thought they should behave the same when used in a undo scenario, but they didn't. this one works: https://paste.ubuntu.com/p/bBDM4mZKPZ/ this one doesn't work: https://paste.ubuntu.com/p/w47mVFBXY7/ Both script should make the ore drops coal when not using silktouch, but the latter makes undo drop ores when it shouldn't.

I completely understand if you decide not to change this behavior, but it'd be great if you do, the latter script is a lot more straight forward.

Affected Versions

Do not use latest; please supply accurate version numbers.

misterplus commented 4 years ago

Also posted this in the building gadgets issue: https://github.com/Direwolf20-MC/BuildingGadgets/issues/509