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
Prevent the Ore Finder Wand from imploding #13
Conversation
Warning: 2 uncommitted changes |
Co-authored-by: GitHub GTNH Actions <>
Current code doesn't solve issue completely, because there are keyboard shortcuts which allow to move items. More proper solution would be to implement something like locked slot and adding such slot like this. |
My implementation is based on the GT++ backpack. That code has a few comments 1 2 3 regarding backpack self-storage, which I followed. You think this is broken in GT++ as well? I have done some playtesting and it all worked as expected. Do you know some keybinds that might still allow transferring the wand into itself? Tried it with Inv and Mouse Tweaks. |
There is keyboard shortcut which allows to move any item to hotbar (IDK, is one added by vanilla or by tweaks mods). Steps to reproduce (tested in survival, in creative NEI will dupe items):
|
After few more tests I found that item is destroyed only when NEI is enabled. But anyway I think that moving item from "locked" position isn't a desired behavior. |
This actually vanilla functionality. |
OK, I have reworked the locked slot handling more akin to what Forestry does. This was very enlightening. Please have a look. I'm gonna have to fix the GT++ backpack next (though probably nobody uses them 😛) |
… previous efforts New mitigation is based on Forestry backpacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good job!
Add just one method override to slot class for safety.
Co-authored-by: Alexander Anishin <oneeyemaker@gmail.com>
Committed (also updated the GT++ PR). Thank you. |
Fixes GTNewHorizons/GT-New-Horizons-Modpack#13480