Fix TextureMap failing when registering a sprite's resource location twice (#2785)

This commit is contained in:
AlexIIL authored and Fry committed 2016-05-03 10:07:49 +04:00
1 parent 5a20950902
commit 980845b61b
1 file changed
+9
@@ -145,6 +145,15 @@
try
{
iresource = p_184397_1_.func_110536_a(resourcelocation);
@@ -291,7 +336,7 @@
}
else
{
- TextureAtlasSprite textureatlassprite = (TextureAtlasSprite)this.field_110574_e.get(p_174942_1_);
+ TextureAtlasSprite textureatlassprite = (TextureAtlasSprite)this.field_110574_e.get(p_174942_1_.toString());
if (textureatlassprite == null)
{
@@ -317,4 +362,37 @@
{
return this.field_94249_f;