-
Notifications
You must be signed in to change notification settings - Fork 2
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
Merchant hostility applying to random entities? #30
Comments
Hello, thanks for the report! |
Yeah, like I said, I looked at your code, I have no idea. According to reports it happens for all entities, but I've also received a report specifically about the songbird (which doesn't extend any mixined entity). |
It could be that your injects are applying to the parent class due to a lack of full method qualification, or that the method is not overridden in the targeted class, so it applies to the parent? You could also try adding instanceof checks to the mixins. I don't have a reproduction of the issue considering it's not my report, but you can ask @AshrielV |
The method is overriden by the classes I inject, because I couldn't inject otherwise. And even though it would apply to parent class (which is unlikely the case), the parent classes are HostileEntity or RaidEntity which is not related to animals. I've also checked your code and did not find anything that could cause the issue with my mod. |
Feel free to reopen if relevant |
We received a bug report over at Better Animals Plus about this mod interacting with our entities when merchant hostility is enabled.
itsmeow/betteranimalsplus#300
We also received a similar bug report in the comments on CurseForge, so it seems multiple users have been affected by this. I took a look at your code, I'm really not sure how this would happen unless your mixin target somehow applied to the base classes of entities.
Issue Content
When sihywtcamd's config
then every mob in this mod attempts to murder villagers and guildmasters.
To Reproduce
Steps to reproduce the behavior:
Versions
The text was updated successfully, but these errors were encountered: