Browse Source

Merge pull request 'treb-range-fix' (#17) from treb-range-fix into master

Reviewed-on: MagicBane/Server#17
master
MagicBot 2 years ago
parent
commit
9988863a85
  1. 1
      src/engine/objects/Mob.java
  2. 2
      src/engine/objects/NPC.java

1
src/engine/objects/Mob.java

@ -365,7 +365,6 @@ public class Mob extends AbstractIntelligenceAgent { @@ -365,7 +365,6 @@ public class Mob extends AbstractIntelligenceAgent {
this.setObjectTypeMask(MBServerStatics.MASK_PET | this.getTypeMasks());
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
this.setLoc(this.getLoc());
mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
}
if (!isPet && this.contract == null) {
this.level = (short) this.mobBase.getLevel();

2
src/engine/objects/NPC.java

@ -1453,7 +1453,7 @@ public class NPC extends AbstractCharacter { @@ -1453,7 +1453,7 @@ public class NPC extends AbstractCharacter {
return null;
mob = new Mob(minionMobBase, guild, parent, level,new Vector3fImmutable(1,1,1), 0,false);
mob.runAfterLoad();
mob.despawned = true;
DbManager.addToCache(mob);

Loading…
Cancel
Save