Browse Source

fix pets

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
0fa6ebc136
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -574,11 +574,11 @@ public class Mob extends AbstractIntelligenceAgent {
mob = new Mob(mobBase, guild, parent, level, owner, 0); mob = new Mob(mobBase, guild, parent, level, owner, 0);
if (mob.mobBase == null) if (mob.mobBase == null)
return null; return null;
mob.runAfterLoad();
Vector3fImmutable loc = owner.getLoc();
DbManager.addToCache(mob); DbManager.addToCache(mob);
mob.setPet(owner, true); mob.setPet(owner, true);
mob.setWalkMode(false); mob.setWalkMode(false);
mob.runAfterLoad();
} catch (Exception e) { } catch (Exception e) {
Logger.error(e); Logger.error(e);

Loading…
Cancel
Save