1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 06:24:32 +00:00

Allow custom capes in mods

This commit is contained in:
fgenesis 2015-03-09 04:55:03 +01:00
parent b70de7f94b
commit 9973afbac6
5 changed files with 18 additions and 25 deletions

View file

@ -1328,8 +1328,11 @@ void RenderObject::setTexture(const std::string &n)
if (name.empty())
return;
if(texture && texture->name == core->getInternalTextureName(name))
if(texture && !texture->failed && texture->name == core->getInternalTextureName(name))
{
Texture::textureError = TEXERR_OK;
return; // no texture change
}
Texture *oldtex = texture;
Texture *t = core->addTexture(name);