From e2028dfd36672a482e0f93c10190909e552a9495 Mon Sep 17 00:00:00 2001 From: Kam Date: Fri, 29 Mar 2024 17:04:10 -0400 Subject: [PATCH] Reset Texture Location if URL changed --- src/main/java/noppes/npcs/DataDisplay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/noppes/npcs/DataDisplay.java b/src/main/java/noppes/npcs/DataDisplay.java index 0bc50badd..2921958a5 100644 --- a/src/main/java/noppes/npcs/DataDisplay.java +++ b/src/main/java/noppes/npcs/DataDisplay.java @@ -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(); }