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

@@ -35,6 +35,8 @@ public class DataDisplay {
public boolean disableLivingAnimation = false;
public byte showBossBar = 0;
public byte squareTexture = 0;
public DataDisplay(EntityNPCInterface npc){
this.npc = npc;
@@ -86,6 +88,7 @@ public class DataDisplay {
nbttagcompound.setBoolean("NoLivingAnimation", disableLivingAnimation);
nbttagcompound.setByte("BossBar", showBossBar);
nbttagcompound.setByte("SquareTexture", squareTexture);
return nbttagcompound;
}
@@ -121,6 +124,7 @@ public class DataDisplay {
disableLivingAnimation = nbttagcompound.getBoolean("NoLivingAnimation");
showBossBar = nbttagcompound.getByte("BossBar");
squareTexture = nbttagcompound.getByte("SquareTexture");
if(prevSkinType != skinType || !texture.equals(prevTexture))
npc.textureLocation = null;