Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo not compatible with dropt #509

Closed
misterplus opened this issue Aug 14, 2020 · 14 comments
Closed

Undo not compatible with dropt #509

misterplus opened this issue Aug 14, 2020 · 14 comments
Labels
1.12 This issue or pull request only pertains to MC 1.12 bug Something isn't working stale This issue or pull request has become stale unresolved For any closed issues that have not been resolved.

Comments

@misterplus
Copy link

IMPORTANT: Before continuing, please ensure that Building Gadgets (and any other mods involved) is updated to the latest available version

After deleting this template, please provide the following information:

  • Forge version 14.23.5.2847
  • Building Gadgets version 2.8.4
  • If the issue is a crash; An external link to the crash report
  • How to reproduce the issue
    1.Replace a block's drop with dropt (a mod that lets you reconfigure block drops)
    2.Place a block whose drops have been changed with a gadget
    3.Undo that placement
    4.Not only you get the block back in your inventory, the newly replaced drops would also drop.
  • A screenshot, if applicable
@MichaelHillcox
Copy link
Collaborator

Could you pastebin your Dropt config so I can test this as I don't personally know how dropt works but I can definitely see if I can fix this.

@MichaelHillcox MichaelHillcox added 1.12 This issue or pull request only pertains to MC 1.12 bug Something isn't working labels Aug 14, 2020
@MajorTuvok
Copy link
Contributor

Is there maybe an event we're supposed to be listening/firing?

@MichaelHillcox
Copy link
Collaborator

MichaelHillcox commented Aug 14, 2020

@misterplus
Copy link
Author

Yeah after some tinkering I figured out a way to make this work with dropt, so here's the original script: (the ones that are on the bottom, the ore ones)
https://paste.ubuntu.com/p/GRJ5YjVgnb/
This is the script that works:
https://paste.ubuntu.com/p/XKyxYdQrtN/
I'm sorry for submitting an issue kind of early and without through testing, if there's anything you guys can do to make this easier (make the scripting not too messy just to play around undo), that'd be great. If not you can close this. Again, I'm sorry for my impatience.

@MichaelHillcox
Copy link
Collaborator

Can definitely take a look

@MajorTuvok
Copy link
Contributor

MajorTuvok commented Aug 14, 2020

You could contact the people of dropt, as they know better then we do how it works... (and if they have a request on how to change it so that it doesn't have to be that lengthy, it's easier for us to change it)

@misterplus
Copy link
Author

Yeah, fair enough. I'll do that then. Sorry for the inconvenience.

@MichaelHillcox
Copy link
Collaborator

No worries, feel free to reference our issue #509 in the issue for Dropt so we can track it 👍

@codetaylor
Copy link

codetaylor commented Aug 14, 2020

Hi, I'm the author of Dropt. If you have time, can you please link the code that is responsible for the undo behavior? It would save me considerable time rooting around in your codebase.

Chances are the undo operation is triggering a HarvestDropsEvent as that's what Dropt hooks at @SubscribeEvent(priority = EventPriority.LOWEST).

Edit: 1.12 branch please :)

@MichaelHillcox
Copy link
Collaborator

Should be the main bits you're intrested in. Its likely that we're not handling something correctly

@codetaylor
Copy link

Thank you. I'll dig into it when I have time.

@MichaelHillcox
Copy link
Collaborator

No worries, if it's us then we'll push out a patch to fix it, we're not doing much with 1.12 anymore but as this looks to be a mod used in packs, it's likely a good idea we patch it 👍

@MichaelHillcox MichaelHillcox added stale This issue or pull request has become stale unresolved For any closed issues that have not been resolved. labels Oct 24, 2020
@MichaelHillcox
Copy link
Collaborator

We thank you for your issue report, unfortunatly we no longer support this version of Minecraft / Our mod. I've added your issue to a collection of issues that the community is welcome to create pull requests for. Hopefully your issue is resolved in time 👍 Master list: #535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.12 This issue or pull request only pertains to MC 1.12 bug Something isn't working stale This issue or pull request has become stale unresolved For any closed issues that have not been resolved.
Projects
None yet
Development

No branches or pull requests

4 participants