The OnUse method in the mixin would override the method properly in the dev build but in the release build it wouldn't work. Mixin now refactored to extend the Block class like its target, and use @Override tag to guarantee to work. Also disables a deprecation warning, which we can modify once it is changed for real by Mojang.
I've tested this by building the mod locally and using the .jar file generated with my 1.20.1 client. It now works.
The
OnUse
method in the mixin would override the method properly in the dev build but in the release build it wouldn't work. Mixin now refactored to extend theBlock
class like its target, and use@Override
tag to guarantee to work. Also disables a deprecation warning, which we can modify once it is changed for real by Mojang.I've tested this by building the mod locally and using the .jar file generated with my 1.20.1 client. It now works.
Fixes #181