duplicate zoneMobSet additions fixed

This commit is contained in:
2023-05-09 19:57:34 -05:00
parent b3c7db9214
commit f99698feda
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -806,8 +806,6 @@ public class Mob extends AbstractIntelligenceAgent {
mob.npcOwner = guardCaptain;
mob.spawnTime = (int)(-2.500 * guardCaptain.building.getRank() + 22.5) * 60;
mob.BehaviourType = Enum.MobBehaviourType.GuardMinion;
//add mob to zone set of captain
guardCaptain.getParentZone().zoneMobSet.add(mob);
return mob;
}
-3
View File
@@ -984,9 +984,6 @@ public class NPC extends AbstractCharacter {
(short) 1, (short) 1, (short) 1, guild, (byte) 0, 0, isMob, building, contractID, parent);
npcWithoutID.setLevel(level);
if (parent != null) {
npcWithoutID.setRelPos(parent, spawn.x - parent.absX, spawn.y - parent.absY, spawn.z - parent.absZ);
}
if (npcWithoutID.mobBase == null) {
return null;