SensibleToolbox
SensibleToolbox copied to clipboard
Combined hoe fixes
Description
Combined hoes have not been working as intended. Couldn't till grass. Seeds added aren't saved and broken plants wouldn't trigger the 3x3 area.
Changes
Added EquimentSlot field for updateHeldItemStack. Added updateHeldItemStack to GuiClose and PlantSeeds saving the seed type and amount correctly. Changed material check to GRASS_BLOCK. Set seed bag to Right click air only, otherwise it opens when planting seed and is generally more convenient to separate the actions, updated lore to suit. Protection check was incorrectly inverted and would only break protected blocks. Reversed.
Related Issues
Checklist
- [x] I have fully tested the proposed changes and promise that they will not break everything into chaos.
- [x] I followed the existing code standards and didn't mess up the formatting.
- [ ] I did my best to add documentation to any public classes or methods I added.
- [ ] I have added
NonnullandNullableannotations to my methods to indicate their behaviour for null values