From 21a1dfcbac75ce820ec10f6651db03afe65e621a Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Wed, 21 Nov 2012 05:53:26 +0100 Subject: [PATCH] Preserve intervals outside the given range to remove. --- .../src/main/java/com/comphenix/protocol/CommandPacket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java index d609bf4e..3b8245c9 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java @@ -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; }