Skip to content

Fix PiglinBruteBrainMixin concerns [1.18.2]#489

Merged
Draylar merged 1 commit intoDraylar:arch-1.18.2from
dhyces:1.18.2-overwrite-fix
Feb 17, 2023
Merged

Fix PiglinBruteBrainMixin concerns [1.18.2]#489
Draylar merged 1 commit intoDraylar:arch-1.18.2from
dhyces:1.18.2-overwrite-fix

Conversation

@dhyces
Copy link
Copy Markdown

@dhyces dhyces commented Jan 14, 2023

Fixes #488

The mixin before was using an Overwrite which causes concerns for other mods wanting to influence the behavior of the method (known as getTargetIfWithinRange on mojmaps). We now inject directly into the backing method of the filter lambda seen in the original method. This also fixes safety of other developers aiming to AW/AT the method to public in their own mods, as overwrite disallows this.

Tested it in production of both fabric and forge environments.

See edited javadoc for more info on the change implementation.

@dhyces dhyces changed the title Fix PiglinBruteBrainMixin concerns Fix PiglinBruteBrainMixin concerns [1.18.2] Jan 14, 2023
@dhyces
Copy link
Copy Markdown
Author

dhyces commented Jan 14, 2023

Should be able to be merged into updated branches as well

@Natedogwoooof
Copy link
Copy Markdown

You talking aboult how piglins go all wako even if ur an hostile identity

@dhyces
Copy link
Copy Markdown
Author

dhyces commented Jan 24, 2023

You talking aboult how piglins go all wako even if ur an hostile identity

No idea what you're referring to. I haven't played with this mod other than the testing I did to ensure this worked. This is purely a functional change that does not impact how the identities work. It does however ensure safety between mods to keep compatibility.

@Milanovsk1
Copy link
Copy Markdown

Milanovsk1 commented Feb 12, 2023

Was this fix ever implemented? I'm still getting this crash on 1.19.2 when using Identity alongside the Bygone Nether mod

@Draylar Draylar merged commit cd82771 into Draylar:arch-1.18.2 Feb 17, 2023
@Draylar
Copy link
Copy Markdown
Owner

Draylar commented Feb 17, 2023

Thank you dhyces, much appreciated! I'm pushing this out in version 2.3.1 now.

@Draylar
Copy link
Copy Markdown
Owner

Draylar commented Feb 17, 2023

3ca027e for 1.19.1 patch, version 2.6.1

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.

Mixin incompatibility with Bygone Nether

4 participants