SensibleToolbox icon indicating copy to clipboard operation
SensibleToolbox copied to clipboard

Combined hoe fixes

Open Sefiraat opened this issue 4 years ago • 0 comments

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 Nonnull and Nullable annotations to my methods to indicate their behaviour for null values

Sefiraat avatar Jul 05 '21 22:07 Sefiraat