Fix for updating overlay and powered textures.

This commit is contained in:
Luis C.M committed 2022-05-16 01:22:33 -05:00
1 parent d82b9c972e
commit 71aff8f78f
2 files changed
+13 -7

No files matched your search

@@ -215,7 +215,13 @@ public class RenderNPCInterface extends RenderLiving{
{
if(npc.textureGlowLocation == null){
npc.textureGlowLocation = new ResourceLocation(npc.display.glowTexture);
} else {
String locationString = npc.textureGlowLocation.getResourceDomain() + ":" + npc.textureGlowLocation.getResourcePath();
if (!locationString.equals(npc.display.glowTexture)) {
npc.textureGlowLocation = new ResourceLocation(npc.display.glowTexture);
}
}
bindTexture((ResourceLocation) npc.textureGlowLocation);
float f1 = 1.0F;
@@ -259,6 +265,11 @@ public class RenderNPCInterface extends RenderLiving{
{
if(npc.texturePoweredLocation == null){
npc.texturePoweredLocation = new ResourceLocation(npc.display.poweredTexture);
} else {
String locationString = npc.texturePoweredLocation.getResourceDomain() + ":" + npc.texturePoweredLocation.getResourcePath();
if (!locationString.equals(npc.display.poweredTexture)) {
npc.texturePoweredLocation = new ResourceLocation(npc.display.poweredTexture);
}
}
bindTexture((ResourceLocation) npc.texturePoweredLocation);