teamfusion / rottencreatures

4 stars 11 forks source link

Fixed ResourceLocationException crash #31

Closed zperk13 closed 11 months ago

zperk13 commented 11 months ago

The mod makes an assumption about the file structure of armor texture files. Not all mods (in my case, environmentals) follow that convention. When this assumption fails, the game crashes. I modified the code so that if it can't get the armor textures loaded properly, it just skips the rendering of it. The damage reduction and stuff of the armor is still there, the armor just isn't visible. Seemed like the best trade off, at least without a big rewrite of that part of the system, which I don't know enough about this codebase to do.

ItsBlackGear commented 11 months ago

lovely! i'm currently reworking on all entities one by one, i may take a deeper look into the mummy rendering for the next update and hopefully this can be of help so i'll go ahead and merge it.