1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

32 commits

Author SHA1 Message Date
mat
7b3e2e4bf7
1.20.2 (#99)
* add configuration state

* start updating to 23w31a

* implement a bit more of 23w31a

* chunk batching

* start adding configuration state

* ioasfhjgsd

* almost works

* configuration state mostly implemented

* handle other packets in configuration state and fix keepalive

* cleanup, fix warnings

* 23w32a

* fix some doctests

* 23w33a

* 23w35a

* 1.20.2-pre2

* fix system conflicts

* 1.20.2-pre4

* make tests compile

* tests pass

* 1.20.2-rc2

* 1.20.2

* Revert "1.20.2"

This reverts commit dd152fd265.

* didn't mean to commit that code

---------

Co-authored-by: mat <git@matdoes.dev>
2023-09-21 11:16:29 -05:00
mat
95925b64fa nbt lookup optimization 2023-03-23 19:38:18 +00:00
mat
ecb3f2ffd7 rename Tag to Nbt 2023-03-23 13:55:33 +00:00
mat
c3b63ad129 binary search map 2023-03-22 23:18:55 -05:00
mat
03a672ee9b make nbt code more readable and add comparison benchmark 2023-03-22 19:31:28 -05:00
mat
228ee4a2f0 optimize nbt lists 2023-03-22 19:52:19 +00:00
mat
6738be8090 use compact_str in nbt 2023-03-22 13:52:38 +00:00
2539f948c7 have docs for all crates 2023-01-30 22:05:18 +00:00
ad8b1b7b24 ignore bad utf8 2022-11-09 18:59:03 +00:00
mat
98224cf913 fix clippy warnings 2022-10-15 16:53:34 -05:00
mat
6f6289376a fix errors with rewritten packet reading
i forgot i never tested it before LMAO
2022-10-07 23:56:23 -05:00
mat
bc3aa9467a
Replace impl Read with Cursor<&[u8]> (#26)
* Start getting rid of Cursor

* try to make the tests pass and fail

* make the tests pass

* remove unused uses

* fix clippy warnings

* fix potential OOM exploits

* fix OOM in az-nbt

* fix nbt benchmark

* fix a test

* start replacing it with Cursor<Vec<u8>>

* wip

* fix all the issues

* fix all tests

* fix nbt benchmark

* fix warnings
2022-10-07 20:12:36 -05:00
mat
029ae0e567 use unsigned integers for nbt lengths
probably not an optimization, just makes more sense
2022-08-24 21:09:17 -05:00
mat
e33d57e767 optimize nbt bytearray 2022-08-24 21:02:11 -05:00
mat
2a2e82efeb make some code more idiomatic 2022-08-24 20:00:44 -05:00
mat
ac4d675d44
NBT decoder optimizations (#17)
* replace HashMap with AHashMap

* faster read_string by just doing read_exact

* re-enable all the benchmarks
2022-08-19 14:14:08 -05:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
cd9a05e5a6 read_into -> read_from
yeah
2022-06-25 02:33:28 -05:00
mat
ba399c4440 switch things to use azalea-buf 2022-06-23 15:28:33 -05:00
mat
5ca49e680e azalea-buf 2022-06-23 15:12:17 -05:00
mat
db2fcecdc3 Change some generics to impl Trait 2022-05-01 22:58:20 -05:00
mat
567c6f4f2c Reduce usage of AsyncRead
We already receive everything from the server when it tells us the length, so we can actually just treat the stream as a Read instead of an AsyncRead.
2022-05-01 21:54:03 -05:00
mat
b03d3da659 inline reading in nbt decoding 2022-04-22 18:23:29 +00:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
af28b0e57a reading nbt in the protocol works 2021-12-26 14:15:06 -06:00
mat
6ae94b96e6 start adding nbt to the protocol 2021-12-20 15:22:02 -06:00
mat
91a26609f7 make write_string its own function 2021-12-19 23:20:58 -06:00
mat
c66dd8d833 make read_string its own function 2021-12-19 23:06:05 -06:00
mat
f50cdfccfc ::with_capacity instead of ::new for vecs in nbt 2021-12-19 20:20:43 -06:00
mat
55c9f58219 nbt tests 2021-12-19 13:07:54 -06:00
mat
b030b9de93 nbt 2021-12-18 20:33:16 -06:00
mat
76e1985fc4 reading nbt 2021-12-18 17:02:23 -06:00