Backpacked icon indicating copy to clipboard operation
Backpacked copied to clipboard

TreeChop compatibility?

Open hammertater opened this issue 2 years ago • 0 comments

Greetings Mr. Crayfish, a user reported a compatibility issue with TreeChop. TreeChop cancels normal block breaks on logs and instead performs "chops". Sadly, because this prevents ServerPlayerGameMode.removeBlock from running, the counter for unlocking cardboard boxes doesn't increment.

A simple way to fix this would be to add a listener for TreeChop's "finish chop" event:

  • Fabric: https://github.com/hammertater/treechop/blob/29d03d54c40ed26df803f4d07afa91ca981aee2e/fabric/src/main/java/ht/treechop/api/TreeChopEvents.java#L66-L71
  • Forge: https://github.com/hammertater/treechop/blob/822dbbf9fc6dd6e825a10c05818461a0bdd8e232/forge/src/main/java/ht/treechop/api/ChopEvent.java#L141C1-L162

If this seems alright, I'd be happy to submit a pull request

hammertater avatar Jan 04 '24 03:01 hammertater