diff options
Diffstat (limited to 'azalea-world/src/palette.rs')
| -rwxr-xr-x | azalea-world/src/palette.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-world/src/palette.rs b/azalea-world/src/palette.rs index 9b1a8642..dd5f7daa 100755 --- a/azalea-world/src/palette.rs +++ b/azalea-world/src/palette.rs @@ -49,7 +49,7 @@ impl PalettedContainer { let palette_type = PaletteKind::from_bits_and_type(server_bits_per_entry, container_type); let palette = palette_type.read(buf)?; let size = container_type.size(); - let data = Vec::<u64>::azalea_read(buf)?; + let data = Box::<[u64]>::azalea_read(buf)?; // we can only trust the bits per entry that we're sent if there's enough data // that it'd be global. if it's not global, then we have to calculate it |
