mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Fixed the number of bits precondition to 1 inclusive.
This commit is contained in:
1 parent
b8223e5787
commit
1fb443e6ab
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user