Skip to content

Conversation

StonksMan001
Copy link

In your bow tutorial video, you used a mixin with an @Inject to add zoom to your custom bow. I think that it is much better to use @WrapOperation from MixinExtras in this case instead of @Inject, and it is also much simpler. Also it is a bad practice to extend mixin classes so also don't do that. If you want to refer to the current instance you should use an ((Object) this) cast and then an instanceof check.

It is much better to use @WrapOperation here instead of @Inject. Also it is a bad practice to extend mixin classes so also don't do that.
Update AbstractClientPlayerEntityMixin.java
@d2crashout
Copy link

@StonksMan001 I am not a owner of this repo, but did you test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants