revert
This commit is contained in:
@@ -69,10 +69,6 @@ public class MobileFSMManager {
|
|||||||
private void execution() {
|
private void execution() {
|
||||||
|
|
||||||
//no players online means no mob action required
|
//no players online means no mob action required
|
||||||
if(SessionManager.getActivePlayerCharacterCount() <= 0){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
long mobPulse = System.currentTimeMillis() + MBServerStatics.AI_PULSE_MOB_THRESHOLD;
|
long mobPulse = System.currentTimeMillis() + MBServerStatics.AI_PULSE_MOB_THRESHOLD;
|
||||||
|
|
||||||
while (alive) {
|
while (alive) {
|
||||||
@@ -83,11 +79,6 @@ public class MobileFSMManager {
|
|||||||
if (System.currentTimeMillis() > mobPulse) {
|
if (System.currentTimeMillis() > mobPulse) {
|
||||||
|
|
||||||
for (Zone zone : ZoneManager.getAllZones()) {
|
for (Zone zone : ZoneManager.getAllZones()) {
|
||||||
//check if any players are in the zone
|
|
||||||
if(zone.hasPlayers() == false){
|
|
||||||
//if zone has no players no need for mobs to do anything
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (Mob mob : zone.zoneMobSet) {
|
for (Mob mob : zone.zoneMobSet) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user