Browse Source

despawn timer for mobs reset to 5 seconds min

lakebane
FatBoy-DOTC 4 weeks ago
parent
commit
76b75f0a37
  1. 4
      src/engine/mobileAI/Behaviours/StandardMob.java

4
src/engine/mobileAI/Behaviours/StandardMob.java

@ -87,14 +87,14 @@ public class StandardMob {
} }
//No items in inventory. //No items in inventory.
} else if (mob.isHasLoot()) { } else if (mob.isHasLoot()) {
if (System.currentTimeMillis() > mob.deathTime + 1000L) { if (System.currentTimeMillis() > mob.deathTime + MBServerStatics.DESPAWN_TIMER_ONCE_LOOTED) {
mob.despawn(); mob.despawn();
mob.deathTime = System.currentTimeMillis(); mob.deathTime = System.currentTimeMillis();
return; return;
} }
//Mob never had Loot. //Mob never had Loot.
} else { } else {
if (System.currentTimeMillis() > mob.deathTime + 1000L){//MBServerStatics.DESPAWN_TIMER_ONCE_LOOTED) { if (System.currentTimeMillis() > mob.deathTime + MBServerStatics.DESPAWN_TIMER_ONCE_LOOTED) {
mob.despawn(); mob.despawn();
mob.deathTime = System.currentTimeMillis(); mob.deathTime = System.currentTimeMillis();
return; return;

Loading…
Cancel
Save