Preserve intervals outside the given range to remove.

This commit is contained in:
Kristian S. Stangeland 2012-11-21 05:53:26 +01:00
parent 4b2f69c3c8
commit 21a1dfcbac

View File

@ -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;
}