Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WolfEntityMixin so it doesn't break mixins into the same class from other mods #28

Merged
merged 3 commits into from Sep 30, 2023

Conversation

Fuzss
Copy link
Contributor

@Fuzss Fuzss commented Aug 8, 2023

A fix for #23. This is easier to change on your end as you don't necessarily need your injection to happen before the wolf is tamed while I do (since I want to prevent it). The issue itself shouldn't really happen, but that comes down to the mixin framework itself.

Moving the injection here to after the taming doesn't make a difference as the vanilla wolf is discarded anyway.

@Fuzss Fuzss changed the title Move mixin injection point for compat with Puzzles Lib Fix WolfEntityMixin so it doesn't break mixins into the same class from other mods Aug 8, 2023
@Fuzss
Copy link
Contributor Author

Fuzss commented Aug 8, 2023

After some more testing it turns out the injection point wasn't the issue.

Overriding Tameable::method_48926 is what actually breaks it, I'd assume maybe due to some mapping issue, not sure though. Anyway, you do not need to implement abstract methods in a mixin class, just make the mixin class itself abstract.

@MrKacafirekCZ
Copy link
Owner

LGTM

@MrKacafirekCZ MrKacafirekCZ merged commit 387a62a into MrKacafirekCZ:main Sep 30, 2023
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.

None yet

2 participants