mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
demoffing
This commit is contained in:
parent
8407251ae6
commit
5cb783c7fd
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue