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:
parent
b70de7f94b
commit
9973afbac6
5 changed files with 18 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue