From 27104c73503d74cc40413b277328bef1f891911b Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Sat, 3 Nov 2012 06:51:37 +0100 Subject: [PATCH] Accept zero as a packet ID in the packet command. --- .../src/main/java/com/comphenix/protocol/CommandPacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java index c0a85c49..c185d42e 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/CommandPacket.java @@ -286,7 +286,7 @@ class CommandPacket implements CommandExecutor { start = i; } } else { - if (start > 0) { + if (start >= 0) { result.add(Ranges.closed(start, i - 1)); start = -1; }