demoffing

This commit is contained in:
ceikry 2021-07-22 23:29:15 -05:00
parent 8407251ae6
commit 5cb783c7fd
2 changed files with 3 additions and 3 deletions

View file

@ -385,10 +385,10 @@ public class Player extends Entity {
* @param force If we should force removal, a player engaged in combat will otherwise remain active until out of combat.
*/
public void clear(boolean force) {
if (!force && allowRemoval()) {
/*if (!force && allowRemoval()) {
Repository.getDisconnectionQueue().add(this, true);
return;
}
}*/
if (force) {
Repository.getDisconnectionQueue().remove(getName());
}

View file

@ -33,7 +33,7 @@ class DisconnectionQueue {
//loop through entries and disconnect each
entries.forEach {
if(finish(it.value,false).also{cl -> SystemLogger.logInfo("Cleared? - $cl") }) queue.remove(it.key)
if(finish(it.value,false)) queue.remove(it.key)
}
}