LevelZ icon indicating copy to clipboard operation
LevelZ copied to clipboard

Incompatible with HT's TreeChop

Open TheKuwagata opened this issue 3 years ago • 1 comments

If i chop tree with locked axe i chop it down with TreeChop mod. Is it possible to fix this problem? https://www.curseforge.com/minecraft/mc-mods/treechop/files/4013577

TheKuwagata avatar Oct 01 '22 06:10 TheKuwagata

Mh I see the issue

Globox1997 avatar Oct 18 '22 09:10 Globox1997

The mixin is causing crashes after a TreeChop update, see https://github.com/hammertater/treechop/issues/215

Any classes that aren't in the ht.treechop.api package are potentially unstable, so instead of using mixins, you could prevent TreeChop from detecting trees using events. See https://github.com/hammertater/treechop/blob/main/fabric/src/main/java/ht/treechop/api/TreeChopEvents.java

Specifically, register a listener for the DETECT_TREE event that returns null whenever the player shouldn't be able to chop things. This should also stop TreeChop from showing an on-screen chop indicator, showing tree info in WAILA mods, etc., and will also stop TreeChop from running expensive tree detection checks

hammertater avatar Aug 20 '23 14:08 hammertater

Fixed in newest version for 1.20.1

xR4YM0ND avatar Sep 14 '23 20:09 xR4YM0ND