Harvest with ease

Harvest with ease

15M Downloads

[Bug] plugin ignores a block require_tool setting as well as the need_[x]_tool.json tag entry.

Terminal-Access opened this issue ยท 3 comments

commented

Describe the bug
It appears that the mod dosent check to see if a block is configured to require a tool or requite a certain level of tool.

e.g im working on a mod where my crop requires harvesting using a hoe and the minie level for that tool is set to diamon or above.
this works perfectly untill you right click when this mod is active. it allows you to break/place the crop ignoring the tool requirement.

I understand the plugin is ment to make harvesting easyer however I beleieve it should still respect block that have either a minig level set, requitre tool set or both.

This should be an easy check by calling the inbuilt ".isToolRequired()" boolean from the blockstate.

To Reproduce
load up any mod along side your own that sets crops to require either a tool, or sets a specific minig level, wait for the crop to mature and rightclick to harvest.
see the crop get auto replanted and it's product given to the player as a drop.

Expected behavior
right clicking with out the required tool/mining level appropriate tool should either cause nothing to happen or should destroy the crop with out providing a loot drop or a seed drop.

System information:

  • Fabric and Forge
  • 2.0.0.0
  • 1.18.2

thanks.

commented

Hi! Thank you for reporting the bug!
I indeed didn't think of that, I fixed the bug and I will merge and release a new version (2.0.0.1) by tomorrow (25/06/2022).

commented

Awesome, glad I could assist xD

And thank you for the fast responce and fix!

most appreciated.

commented

Issue should be solved in version 2.0.0.1!
I'm closing the issue, reopen it if the issue persists.