demoffing

This commit is contained in:
ceikry
2021-07-22 23:29:15 -05:00
parent e02e047461
commit 5da5650b5f
2 changed files with 3 additions and 3 deletions
@@ -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());
}
@@ -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)
}
}