mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Reset Texture Location if URL changed
This commit is contained in:
1 parent
3e1075691b
commit
e2028dfd36
1 file changed
+2
-2
@@ -126,6 +126,7 @@ public class DataDisplay {
|
||||
|
||||
title = nbttagcompound.getString("Title");
|
||||
|
||||
String prevUrl = url;
|
||||
url = nbttagcompound.getString("SkinUrl");
|
||||
|
||||
int prevSkinType = skinType;
|
||||
@@ -143,7 +144,6 @@ public class DataDisplay {
|
||||
}
|
||||
|
||||
String prevTexture = texture;
|
||||
|
||||
texture = nbttagcompound.getString("Texture");
|
||||
|
||||
cloakTexture = nbttagcompound.getString("CloakTexture");
|
||||
@@ -200,7 +200,7 @@ public class DataDisplay {
|
||||
else
|
||||
collidesWith = 1;
|
||||
|
||||
if(prevSkinType != skinType || !texture.equals(prevTexture))
|
||||
if(prevSkinType != skinType || !texture.equals(prevTexture)|| !url.equals(prevUrl))
|
||||
npc.textureLocation = null;
|
||||
npc.updateHitbox();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user