Reset Texture Location if URL changed

This commit is contained in:
Kam committed 2024-03-29 17:04:10 -04:00
1 parent 3e1075691b
commit e2028dfd36
1 file changed
+2 -2
+2 -2
View File
@@ -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();
}