sekelsta / horse-colors

A Minecraft mod adding realistic colors of horses, with accurate genetics.
https://www.curseforge.com/minecraft/mc-mods/realistic-horse-genetics
Other
16 stars 12 forks source link

Compatibility with other mods #11

Closed lilgallon closed 4 years ago

lilgallon commented 4 years ago

sekelsta.horse_colors.client.HorseGui should extend net.minecraft.client.gui.screen.inventory.HorseInventoryScreen. Then you can override the functions with the ones that you already coded. It will improve the compatibility with other mods that will still be able to use HorseInventoryScreen while your mod is loaded.

Context: My horse statistics mod is using the HorseInventoryScreen class to get the data. But when your mod is loaded, the horse screen is replaced by yours which breaks some features of my mod.

sekelsta commented 4 years ago

Those private fields are a pain, but alright. I'll try it.

sekelsta commented 3 years ago

This is released as of yesterday (version 1.5.0)

lilgallon commented 3 years ago

Thanks for your work!