Browse Source

Name set to default.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
d8d5e4a3c4
  1. 3
      src/engine/objects/Mob.java

3
src/engine/objects/Mob.java

@ -560,6 +560,9 @@ public class Mob extends AbstractIntelligenceAgent { @@ -560,6 +560,9 @@ public class Mob extends AbstractIntelligenceAgent {
petMinion.healthMax = MobBase.getMobBase(loadID).getHealthMax() * (petMinion.level * 0.5f);
petMinion.health.set(petMinion.healthMax);
petMinion.behaviourType = MobBehaviourType.Pet1;
petMinion.firstName = "";
petMinion.lastName = "";
petMinion.despawned = false;
petMinion.runAfterLoad();
DbManager.addToCache(petMinion);
createLock.writeLock().unlock();

Loading…
Cancel
Save