fix a potential NPE

This commit is contained in:
Mark Zharkov committed 2025-02-06 22:44:28 +03:00
1 parent f2e85c1347
commit 7244d8fcd7
1 file changed
+1 -1
@@ -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;
}