-
Notifications
You must be signed in to change notification settings - Fork 866
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
Create Wrench can dupe blocks when sneak+clicked in protected areas #6465
Comments
Nevermind, ignore me. I just can't read apparently |
I got a similar issue too. But I wasn't in a protected area...? I'm assuming its something similar to what you said with the block placement and removal. Are there any solutions yet? |
Yea, it’s in the linked pr |
Is the code a full fix/patch? If so how do I use it? (tried downloading it and compressing into a .class file to replace the one in the .jar from modrinth) |
you wait until it’s merged, then it will be fixed in the next release |
ok, thanks! |
Describe the Bug
See FTBTeam/FTB-Mods-Issues#1162 (comment) for a detailed description of what's happening.
In short: if the Create wrench is used to break a block by sneak + right-clicking, in an area where the Forge
BlockEvent.PlaceEvent
gets cancelled, a dupe will occur. This is due to an interaction between the way the Create wrench works (breaking the block immediately and putting a copy of the item into the player's inventory), and the way Forge handles item use (specifically, firing a block place event later and restoring a block snapshot if the event is cancelled).This means that in areas protected by FTB Chunks, or any other mod which cancels a block place event, the Create wrench can be used to dupe any block it's able to sneak+right-click.
Reproduction Steps
Expected Result
No block duping
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Any
Mod Version
0.5.1f
Minecraft Version
1.20.1
Forge Version
47.2.30
Other Mods
No crash
Additional Context
No response
The text was updated successfully, but these errors were encountered: