mob respawn issue resolved
This commit is contained in:
@@ -884,6 +884,8 @@ public class MobAI {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
aiAgent.despawn();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Mob.discDroppers.contains(aiAgent))
|
if(Mob.discDroppers.contains(aiAgent))
|
||||||
@@ -892,7 +894,7 @@ public class MobAI {
|
|||||||
if(aiAgent.StrongholdGuardian || aiAgent.StrongholdEpic || aiAgent.StrongholdCommander)
|
if(aiAgent.StrongholdGuardian || aiAgent.StrongholdEpic || aiAgent.StrongholdCommander)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
|
if (aiAgent.despawned && System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
|
||||||
if (!Zone.respawnQue.contains(aiAgent)) {
|
if (!Zone.respawnQue.contains(aiAgent)) {
|
||||||
Zone.respawnQue.add(aiAgent);
|
Zone.respawnQue.add(aiAgent);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1442,6 +1442,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
loadInventory();
|
loadInventory();
|
||||||
|
|
||||||
this.updateLocation();
|
this.updateLocation();
|
||||||
|
this.stopPatrolTime = 0;
|
||||||
|
this.lastPatrolPointIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void despawn() {
|
public void despawn() {
|
||||||
|
|||||||
Reference in New Issue
Block a user