From 980845b61bc13cede5b5437b06afe8fab14e67b6 Mon Sep 17 00:00:00 2001 From: AlexIIL Date: Tue, 3 May 2016 07:07:49 +0100 Subject: [PATCH] Fix TextureMap failing when registering a sprite's resource location twice (#2785) --- .../client/renderer/texture/TextureMap.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch b/patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch index f7fad50b17..4622bff373 100644 --- a/patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch +++ b/patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch @@ -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;