From 0fa6ebc136069d91997130b96292e95bded64494 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 23 Jun 2024 19:33:06 -0500 Subject: [PATCH] fix pets --- src/engine/objects/Mob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 70602b02..3268f241 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -574,11 +574,11 @@ public class Mob extends AbstractIntelligenceAgent { mob = new Mob(mobBase, guild, parent, level, owner, 0); if (mob.mobBase == null) return null; - mob.runAfterLoad(); - Vector3fImmutable loc = owner.getLoc(); + DbManager.addToCache(mob); mob.setPet(owner, true); mob.setWalkMode(false); + mob.runAfterLoad(); } catch (Exception e) { Logger.error(e);