mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-15 20:44:50 +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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user