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 { @@ -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);

Loading…
Cancel
Save