Browse Source

mobs that spawn with no loot respawn again

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
a963a331a2
  1. 5
      src/engine/mobileAI/MobAI.java

5
src/engine/mobileAI/MobAI.java

@ -864,9 +864,7 @@ public class MobAI {
return; return;
} }
//No items in inventory. //No items in inventory.
} else { } else if (aiAgent.isHasLoot()) {
//Mob's Loot has been looted.
if (aiAgent.isHasLoot()) {
if (System.currentTimeMillis() > aiAgent.deathTime + MBServerStatics.DESPAWN_TIMER_ONCE_LOOTED) { if (System.currentTimeMillis() > aiAgent.deathTime + MBServerStatics.DESPAWN_TIMER_ONCE_LOOTED) {
aiAgent.despawn(); aiAgent.despawn();
aiAgent.deathTime = System.currentTimeMillis(); aiAgent.deathTime = System.currentTimeMillis();
@ -881,7 +879,6 @@ public class MobAI {
} }
} }
} }
}
if(Mob.discDroppers.contains(aiAgent)) if(Mob.discDroppers.contains(aiAgent))
return; return;

Loading…
Cancel
Save