From 7244d8fcd7962c07c13e5652e4980e4e6b31ea8d Mon Sep 17 00:00:00 2001 From: Mark Zharkov Date: Thu, 6 Feb 2025 22:44:28 +0300 Subject: [PATCH] fix a potential NPE --- .../java/noppes/npcs/client/gui/model/GuiCreationScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java b/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java index 1aec9f0b4..823ed7c86 100644 --- a/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java +++ b/src/main/java/noppes/npcs/client/gui/model/GuiCreationScreen.java @@ -349,7 +349,7 @@ public class GuiCreationScreen extends GuiModelInterface implements ICustomScrol private void updateTexture(){ try{ EntityLivingBase entity = playerdata.getEntity(npc); - if (entity.equals(npc.modelData.entity)) { + if (entity != null && entity.equals(npc.modelData.entity)) { return; }