mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 11:36:51 +01:00
Preserve intervals outside the given range to remove.
This commit is contained in:
parent
4b2f69c3c8
commit
21a1dfcbac
@ -459,9 +459,9 @@ class CommandPacket extends CommandBase {
|
||||
|
||||
// The interval tree will automatically remove the listeners for us
|
||||
if (side.isForClient())
|
||||
result.addAll(clientListeners.remove(idStart, idStop));
|
||||
result.addAll(clientListeners.remove(idStart, idStop, true));
|
||||
if (side.isForServer())
|
||||
result.addAll(serverListeners.remove(idStart, idStop));
|
||||
result.addAll(serverListeners.remove(idStart, idStop, true));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user