fix pets
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user