diff options
| author | EightFactorial <murphkev000@gmail.com> | 2023-01-25 09:51:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 11:51:27 -0600 |
| commit | 9a66cb97a659ed1f0e52ba3d9438de1d9b78d64a (patch) | |
| tree | 16405cec7c45fb952509a5f93f6970b511315046 /azalea-core/src | |
| parent | 473c74175c3a8189616bded528e3e6e4785dd3c8 (diff) | |
| download | azalea-drasl-9a66cb97a659ed1f0e52ba3d9438de1d9b78d64a.tar.xz | |
Fix test and packets (#60)
* Fix test and packets
* Fix bug, fix a couple more packets
* add tests and fix stuff
* fix warnings
Co-authored-by: Ubuntu <github@matdoes.dev>
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/bitset.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs index b45a18d2..381e86ea 100755 --- a/azalea-core/src/bitset.rs +++ b/azalea-core/src/bitset.rs @@ -1,4 +1,4 @@ -use std::io::{Cursor, Read, Write}; +use std::io::{Cursor, Write}; use azalea_buf::{BufReadError, McBuf, McBufReadable, McBufWritable}; @@ -106,13 +106,6 @@ impl BitSet { pub fn set(&mut self, bit_index: usize) { self.data[bit_index / 64] |= 1u64 << (bit_index % 64); } - - /// Read a BitSet with a known length. - pub fn read_fixed(buf: &mut Cursor<&[u8]>, length: usize) -> Result<Self, BufReadError> { - let mut data = vec![0; length.div_ceil(8)]; - buf.read_exact(&mut data)?; - Ok(BitSet::from(data)) - } } impl From<Vec<u64>> for BitSet { |
