demoffing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user