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. * @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) { public void clear(boolean force) {
if (!force && allowRemoval()) { /*if (!force && allowRemoval()) {
Repository.getDisconnectionQueue().add(this, true); Repository.getDisconnectionQueue().add(this, true);
return; return;
} }*/
if (force) { if (force) {
Repository.getDisconnectionQueue().remove(getName()); Repository.getDisconnectionQueue().remove(getName());
} }
@@ -33,7 +33,7 @@ class DisconnectionQueue {
//loop through entries and disconnect each //loop through entries and disconnect each
entries.forEach { 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)
} }
} }