From 6a3bd890950161f54477935a5bfc1ace6ddb50a6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 28 Jan 2024 11:24:20 -0500 Subject: [PATCH] Handling of mobs not in buildings. --- src/engine/objects/Mob.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7ee7c33f..c42db2f4 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -418,7 +418,11 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { mobile.guildUUID = guild.getObjectUUID(); mobile.parentZoneUUID = parent.getObjectUUID(); - mobile.buildingUUID = building.getObjectUUID(); + + if (building == null) + mobile.buildingUUID = 0; + else + mobile.buildingUUID = building.getObjectUUID(); if (mobile.buildingUUID != 0) mobile.bindLoc = Vector3fImmutable.ZERO;