mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 15:24:46 +00:00
fix a potential NPE
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user