From 99b952ee285013d81db6d3c96847395d44da0745 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 12:12:54 -0400 Subject: [PATCH] Refactor towards new constructor. --- src/engine/objects/Mob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index d78f7eaa..b3548705 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -474,7 +474,7 @@ public class Mob extends AbstractIntelligenceAgent { mobile.loadID = loadID; mobile.level = (short) level; - if (guild.isEmptyGuild()) + if (guild == null || guild.isEmptyGuild()) mobile.guildUUID = 0; else mobile.guildUUID = guild.getObjectUUID();