Fixed the number of bits precondition to 1 inclusive.

This commit is contained in:
lare96
2015-08-30 08:59:57 -04:00
parent b8223e5787
commit 1fb443e6ab
@@ -223,7 +223,7 @@ public final class GamePacketBuilder {
* @throws IllegalArgumentException If the number of bits is not between 1 and 31 inclusive.
*/
public void putBits(int numBits, int value) {
Preconditions.checkArgument(numBits >= 0 && numBits <= 32, "Number of bits must be between 1 and 32 inclusive.");
Preconditions.checkArgument(numBits >= 1 && numBits <= 32, "Number of bits must be between 1 and 32 inclusive.");
checkBitAccess();