FiskFille / Superheroes

4 stars 2 forks source link

Hero packs break textures when switching shaders #13

Open kotmatross28729 opened 1 year ago

kotmatross28729 commented 1 year ago

If you have a hero pack enabled and you switch shaders (i.e. if they were turned off at startup, turn them on, and if they are turned on, turn them off)

Then, absolutely all the textures from the hero packs (namely, the packs, the original textures work) will break

This will be in the logs first: https://pastebin.com/PB64YhF5

And if you switch shaders again, it will be this: https://pastebin.com/6NbRgrQB

In 1 case, it simply gives an error when loading textures from the hero pack (moreover, indicating the correct path to the texture)

But in the second case, for some reason, it looks for packname:textures/items/heroes/texture.png along the path, but it should be packname:textures/heroes/texture.png

That is, after 2 switching shaders, it adds items/ to the texture search path, which should not be

FiskFille commented 1 year ago

Reloading Minecraft's resources in general (such as switching shaders or resource packs) breaks heropack resources. You can use the command /fiskheroes reload --resources to reload and fix everything.

kotmatross28729 commented 1 year ago

Ok, thanks. But Is it possible to automate this somehow? Well, like if any resources are reloaded, this command run? (I think not, but still?)