mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix TextureMap failing when registering a sprite's resource location twice (#2785)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user