MatrexsVigil / phc2crops

All rights reserved - None of my artwork is available to be used for FREE in your game EVER. If you want to HIRE ME, please contact me. Thank you. This code is here for people to learn from and to help find bugs ONLY.
https://www.patreon.com/pamsmods
Other
16 stars 23 forks source link

Add BreakEvent Check to harvesting #42

Open Caltinor opened 3 years ago

Caltinor commented 3 years ago

Hello,

This is a request to add a BreakEvent check in CropHarvest.java.

The purpose would be to allow other mods to capture harvest events from right clicks in a way that is cancellable and or trackable. Use cases would include protection mods that might want to prevent harvesting under certain conditions, and/or stat tracking mods that want to properly deliver awards to players for harvest actions.

I am willing to build a PR for this, if that is your preference.