mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 11:05:12 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user