team-abnormals / blueprint

Library that implements the framework of all Abnormals mods
https://www.curseforge.com/minecraft/mc-mods/blueprint
Other
111 stars 34 forks source link

Return inject for end biomes to improve compatibility #100

Closed KdotJPG closed 3 years ago

KdotJPG commented 3 years ago

End Biomes mixin inject clones Vanilla code, when it really only needs to depend on the return value of whatever's there. To improve compatibility scenarios such as with my mod Simply Improved Terrain (issue link), this PR replaces the HEAD mixin with a RETURN mixin. This way, if a mod changes the island layout using the Overwrite annotation, Abnormals Core can use the replaced code. Otherwise it uses Vanilla code.

image