diff options
| author | mat <github@matdoes.dev> | 2023-03-22 23:18:55 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-03-22 23:18:55 -0500 |
| commit | c3b63ad129abf956f2171b66980fc94d728fa08b (patch) | |
| tree | 3e987a404b7b808d774eee7bbc7c8eb89b84fa11 /azalea-nbt/src/decode.rs | |
| parent | 350bbac2828ebd5b2a5abac5c54014d271e8603a (diff) | |
| download | azalea-drasl-c3b63ad129abf956f2171b66980fc94d728fa08b.tar.xz | |
binary search map
Diffstat (limited to 'azalea-nbt/src/decode.rs')
| -rwxr-xr-x | azalea-nbt/src/decode.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea-nbt/src/decode.rs b/azalea-nbt/src/decode.rs index 635e2f6d..e2e9c7c9 100755 --- a/azalea-nbt/src/decode.rs +++ b/azalea-nbt/src/decode.rs @@ -1,6 +1,5 @@ use crate::tag::*; use crate::Error; -use ahash::AHashMap; use azalea_buf::{BufReadError, McBufReadable}; use byteorder::{ReadBytesExt, BE}; use flate2::read::{GzDecoder, ZlibDecoder}; @@ -265,7 +264,7 @@ impl Tag { } let name = read_string(stream)?; let tag = Tag::read_known(stream, tag_id)?; - let mut map = AHashMap::with_capacity(1); + let mut map = NbtCompound::with_capacity(1); map.insert(name, tag); Ok(Tag::Compound(map)) |
