Fixed SkinUrl for 64x64 Textures

Must Enable the Square Texture Button on NPC in order to work correct. Local Textures work just fine normally.
This commit is contained in:
KAMKEEL committed 2021-04-29 14:37:33 -04:00
1 parent 51b8e34c02
commit aeb807cea7
7 files changed
+19 -8

No files matched your search

@@ -286,7 +286,7 @@ public class RenderNPCInterface extends RenderLiving{
public ResourceLocation getEntityTexture(Entity entity) {
EntityNPCInterface npc = (EntityNPCInterface) entity;
boolean versionModel = npc.isUpdatedVersion; // DOES NOT WORK
boolean versionModel = false; // Square Texture
if(npc.textureLocation == null){
if(npc.display.skinType == 0)
npc.textureLocation = new ResourceLocation(npc.display.texture);
@@ -310,6 +310,9 @@ public class RenderNPCInterface extends RenderLiving{
sb.append(String.format("%02x", b&0xff));
}
npc.textureLocation = new ResourceLocation("skins/" + sb.toString());
if(npc.display.squareTexture == 1){ versionModel = true; }
loadSkin(null, npc.textureLocation, npc.display.url, versionModel);
LastTextureTick = 0;
}