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

421 commits

Author SHA1 Message Date
mat
2f1fe5f9f6 partial fix for sending Config packets during Game 2024-12-25 09:58:32 +00:00
mat
8f0d0d9280 close tcp connection on bot disconnect and add swarms to testbot cli 2024-12-25 07:27:09 +00:00
mat
04eaa5c3d0 remove dependency on bytes crate for azalea-protocol and fix memory leak 2024-12-25 06:16:10 +00:00
mat
0ee9ed50e3 optimize pathfinder 2024-12-25 03:00:48 +00:00
mat
958848e8ed improve some docs and apis related to pathfinder 2024-12-24 04:37:55 +00:00
mat
ad30950f85 Release independent packages
Generated by cargo-workspaces
2024-12-20 19:22:29 -06:00
mat
7098375ecf Release 0.11.0+mc1.21.4
azalea@0.11.0+mc1.21.4
azalea-auth@0.11.0+mc1.21.4
azalea-block@0.11.0+mc1.21.4
azalea-block-macros@0.11.0+mc1.21.4
azalea-brigadier@0.11.0+mc1.21.4
azalea-buf@0.11.0+mc1.21.4
azalea-buf-macros@0.11.0+mc1.21.4
azalea-chat@0.11.0+mc1.21.4
azalea-client@0.11.0+mc1.21.4
azalea-core@0.11.0+mc1.21.4
azalea-crypto@0.11.0+mc1.21.4
azalea-entity@0.11.0+mc1.21.4
azalea-inventory@0.11.0+mc1.21.4
azalea-inventory-macros@0.11.0+mc1.21.4
azalea-language@0.11.0+mc1.21.4
azalea-physics@0.11.0+mc1.21.4
azalea-protocol@0.11.0+mc1.21.4
azalea-protocol-macros@0.11.0+mc1.21.4
azalea-registry@0.11.0+mc1.21.4
azalea-registry-macros@0.11.0+mc1.21.4
azalea-world@0.11.0+mc1.21.4

Generated by cargo-workspaces
2024-12-20 19:18:36 -06:00
mat
e268c49291 fix incorrect packets 2024-12-19 02:52:41 +00:00
mat
e9136c9cbb
Implement EntityPositionSync (#196)
* implement EntityPositionSync

* fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate
2024-12-11 19:51:12 -06:00
EightFactorial
2feef49471
Disable the deadlock_detection feature by default (#195)
* Disable the `deadlock_detection` feature by default

Fixes conflicts with any packages that enable parking_lot's `send_guard` feature

* move testbot deadlock detection to a function and add additional comments

---------

Co-authored-by: mat <git@matdoes.dev>
2024-12-10 16:37:35 -06:00
mat
39f4d68e1f fix container_set_content, player_position, and recipe_book_remove packets 2024-12-05 06:30:47 +00:00
EightFactorial
6379035b85
Update Bevy and migrate to workspace dependencies and package attributes (#181)
* Use workspace `Cargo.toml` for dependencies and package atributes

* Fix a couple clippy warnings

* Update bevy, update build script, move deps to workspace, and fix clippy warnings

* Remove carrots from crate versions
The default behavior is the same

* Remove unused dependencies
Compiles and all tests pass, so it should be fine

* Update codegen to use `std::sync::LazyLock` instead of `once_cell::sync::Lazy`

* Update Bevy to `0.15.0-rc.3`
Surprisingly little needed to be changed

* Update to bevy 0.15.0

* Fix leftover merge issues

* Clarify the reason the swarm can't connect

* Fix duplicate lint, remove `log` dependency
2024-12-04 18:31:22 -06:00
mat
b71a7af53a
1.21.4 (#189)
* start updating to 1.21.4

* fix block codegen and stop using block data from burger

* 1.21.4-rc1

* 1.21.4
2024-12-03 14:42:23 -06:00
Shayne Hartford
ea5a1c1ec1
Add missing world border boolean to use item on packet in 1.21.2 (#192) 2024-11-30 18:05:35 -06:00
mat
c36201cc89 change DataComponentPatch::get to take in a generic (and add get_kind, has, and has_kind) 2024-11-28 03:17:58 +00:00
mat
08958c2278
Refactor azalea-protocol (#190)
* start updating to 1.21.4

* fix block codegen and stop using block data from burger

* rename packet related modules and structs to be simpler

* ItemSlot -> ItemStack for more consistency with mojmap

* .get() -> .into_packet()

* simplify declare_state_packets by removing packet ids

* rename read_from and write_into to azalea_read and azalea_write

* rename McBufReadable and McBufWritable to AzaleaRead and AzaleaWrite

* McBuf -> AzBuf

* remove most uses of into_variant

* update codegen and use resourcelocation names for packets

* implement #[limit(i)] attribute for AzBuf derive macro

* fixes for 1.21.4

* fix examples

* update some physics code and fix ChatType

* remove unused imports in codegen

* re-add some things to migrate.py and update +mc version numbers automatically

* downgrade to 1.21.3 lol
2024-11-27 19:31:40 -06:00
mat
0817382098 replace once_cell with std:;sync::LazyLock 2024-11-27 10:26:40 +00:00
Shayne Hartford
dfdc3144b6
Update and merge the dependencies (#187)
* Add rust rover to .gitignore

* Fold dependency feature lists

* Sort dependencies alphabetically

* Update dependencies

* Upgrade dependencies

* Comment out unused dependencies

* Nightly is broken right now :)

* Fix conflict with derive_more

* cargo autoinherit to merge dependencies

* Fix clippy lints
2024-11-23 02:29:30 -06:00
Shayne Hartford
09cdc22b86
Make some internal system handles public for use with before/after (#180) 2024-11-12 12:07:36 -06:00
mat
6b0fe5bf63 group imports with rustfmt 2024-10-26 05:29:26 +00:00
mat
40e4096d24
1.21.2 (#171)
* partially implement 24w35a

* start updating to 24w39a + itemcomponent codegen

* fix codegen and broken packets to finish updating to 24w39a :D

* update to 1.21.2 except for blocks

* update ServerboundPlayerInputPacket impl
2024-10-23 00:08:13 -05:00
mat
abc7b43b8c Release 0.10.3+mc1.21.1
azalea@0.10.3+mc1.21.1
azalea-auth@0.10.3+mc1.21.1
azalea-block@0.10.3+mc1.21.1
azalea-block-macros@0.10.3+mc1.21.1
azalea-brigadier@0.10.3+mc1.21.1
azalea-buf@0.10.3+mc1.21.1
azalea-buf-macros@0.10.3+mc1.21.1
azalea-chat@0.10.3+mc1.21.1
azalea-client@0.10.3+mc1.21.1
azalea-core@0.10.3+mc1.21.1
azalea-crypto@0.10.3+mc1.21.1
azalea-entity@0.10.3+mc1.21.1
azalea-inventory@0.10.3+mc1.21.1
azalea-inventory-macros@0.10.3+mc1.21.1
azalea-language@0.10.3+mc1.21.1
azalea-physics@0.10.3+mc1.21.1
azalea-protocol@0.10.3+mc1.21.1
azalea-protocol-macros@0.10.3+mc1.21.1
azalea-registry@0.10.3+mc1.21.1
azalea-registry-macros@0.10.3+mc1.21.1
azalea-world@0.10.3+mc1.21.1

Generated by cargo-workspaces
2024-10-22 23:05:04 -05:00
Shayne Hartford
cd2f298a62
Rename InventoryComponent to Inventory to match other components (#177)
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
2024-10-21 19:21:38 -05:00
mat
e485cf5501 fix incorrect comment in with_microsoft_access_token docs 2024-08-15 23:33:23 +00:00
mat
74831abbe4 modify some docs 2024-08-15 01:26:59 +00:00
mat
73091d8f93 fix sometimes being able to mine blocks through walls 2024-08-15 01:25:11 +00:00
Aditya Kumar
13afc1d6a4
Auth Customization Options (#159)
* Added Support for Custom Auth using `client_id` and `scope`

* fix: `Account::microsoft` and added lifetime to `Account::microsoft_with_custom_client_id`

* Added function `with_microsoft_access_token_and_custom_client_id`

* Removed Custom Scope.

* I got carried away, and made scope also customizable, later realized no customization is needed.

* Better Documentation and Minor fixes

* Added Custom Scope

* Added RpsTicket format for custom `client_id`

* Moved to non-static str

* fix example

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>

* fix doc grammer

* changed function signature

* fmt

* fixed example

* removed dead code

* Removed `d=` insertion in `client_id`

* removed unnecessary `mut`

---------

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>
2024-08-11 16:54:45 -05:00
mat
5ab9c501e9 fmt 2024-08-11 09:03:57 +00:00
Aditya Kumar
832f960531
Added Left Click Mine (1.21) (#168)
* Added Auto Mine

* Unnecessary Block Reach Check

* Added `LeftClickMine`
2024-07-21 20:17:40 -05:00
mat
ca48ed9e25 remove unwraps in events.rs 2024-07-22 01:03:36 +00:00
mat
86fd3168f7 fix panic in update_modifiers_for_held_item
found from 27cecdb8bf
2024-07-22 01:00:56 +00:00
Aditya Kumar
7e93c2d766
Made Hunger and DataComponentPatch public (#167)
* Made `Hunger` component public

* Made `DataComponentPatch` public
2024-07-20 05:45:25 -05:00
mat
ea64fba7f6
upgrade to simdnbt 0.6 (#160) 2024-07-05 00:45:45 -05:00
EnderKill98
350e32d0a9
Fix command packets (#155)
* Fix copy&paste mistake from chat command signed packet to chat command packet

* Bugfix

---------

Co-authored-by: EnderKill98 <no@mail.tld>
2024-06-16 16:03:34 -05:00
mat
f66d2d4767
1.21 (#145)
* 24w18a (data driven enchantments not implemented yet)

* 1.21
2024-06-13 19:52:05 -05:00
mat
38eab50b4f Release 0.10.2
azalea-block@0.10.2
azalea-block-macros@0.10.2
azalea-brigadier@0.10.2
azalea-buf@0.10.2
azalea-chat@0.10.2
azalea-client@0.10.2
azalea-core@0.10.2
azalea-entity@0.10.2
azalea-inventory@0.10.2
azalea-physics@0.10.2
azalea-protocol@0.10.2
azalea-registry@0.10.2
azalea-world@0.10.2

Generated by cargo-workspaces
2024-06-13 19:22:11 -05:00
mat
729d211406 read Tool blocks as HolderSet
fixes an error with viaversion servers
2024-05-22 10:14:35 +00:00
veronoicc
892869ad12
Update simdnbt dep (#148)
* Update simdnbt dep

* Fix not compiling (rust analyzer is still yapping, i trust you cargo check)

* Update simdnbt to 0.5.2

* finally everything works :prayge:
2024-05-14 16:59:36 -05:00
mat
8e2e81651c fmt 2024-04-27 06:08:38 +00:00
Luis
6553d9510d
Use ClientIntention over ConnectionProtocol for ClientIntentionPacket (#143)
* fix!: use ClientIntention over ConnectionProtocol for ClientIntentionPacket

* chore: remove McBufRead/Writable from ConnectionProtocol

* chore: use From over Into for ClientIntention to ConnectionProtocol conversion

* chore: organise imports in existing style
2024-04-27 01:03:20 -05:00
mat
84f66a55a5 Release 0.10.1
azalea@0.10.1
azalea-auth@0.10.1
azalea-buf@0.10.1
azalea-chat@0.10.1
azalea-client@0.10.1
azalea-entity@0.10.1
azalea-inventory@0.10.1
azalea-protocol@0.10.1
azalea-world@0.10.1

Generated by cargo-workspaces
2024-04-24 17:56:35 -05:00
mat
2f51a0a123 Release 0.10.0
azalea@0.10.0
azalea-auth@0.10.0
azalea-block@0.10.0
azalea-block-macros@0.10.0
azalea-brigadier@0.10.0
azalea-buf@0.10.0
azalea-buf-macros@0.10.0
azalea-chat@0.10.0
azalea-client@0.10.0
azalea-core@0.10.0
azalea-crypto@0.10.0
azalea-entity@0.10.0
azalea-inventory@0.10.0
azalea-inventory-macros@0.10.0
azalea-language@0.10.0
azalea-physics@0.10.0
azalea-protocol@0.10.0
azalea-protocol-macros@0.10.0
azalea-registry@0.10.0
azalea-registry-macros@0.10.0
azalea-world@0.10.0

Generated by cargo-workspaces
2024-04-23 23:56:30 -05:00
mat
df8068b79c upgrade deps 2024-04-24 04:20:39 +00:00
mat
7357455cad Revert "Release 0.10.0"
This reverts commit f26aa56f42.
2024-04-24 04:11:53 +00:00
mat
f26aa56f42 Release 0.10.0
azalea@0.10.0
azalea-auth@0.10.0
azalea-block@0.10.0
azalea-block-macros@0.10.0
azalea-brigadier@0.10.0
azalea-buf@0.10.0
azalea-buf-macros@0.10.0
azalea-chat@0.10.0
azalea-client@0.10.0
azalea-core@0.10.0
azalea-crypto@0.10.0
azalea-entity@0.10.0
azalea-inventory@0.10.0
azalea-inventory-macros@0.10.0
azalea-language@0.10.0
azalea-physics@0.10.0
azalea-protocol@0.10.0
azalea-protocol-macros@0.10.0
azalea-registry@0.10.0
azalea-registry-macros@0.10.0
azalea-world@0.10.0

Generated by cargo-workspaces
2024-04-23 23:11:11 -05:00
mat
1d80f531b7
1.20.5 (#127)
* 23w51b

* make recalculate_near_end_of_path public

so other plugins can do .after(recalculate_near_end_of_path)

* update to 24w03a i think

* start implementing 24w13a

* registries work (but a lot of packets are still broken)

* fix recipes and commands packets

* i love codecs :D i am not going insane :D mojang's java is very readable :D

* item components are "implemented" meowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeow

* update to 1.20.5-pre3

* fix all the broken packets and clippy (mojang please don't do an update like this again or i will murder someone)

* 1.20.5-rc1

* fix failing tests

* 1.20.5
2024-04-23 10:34:50 -05:00
mat
f919fb65d6 upgrade deps 2024-04-20 04:12:16 +00:00
mat
8a1e1b7bb9 clippy 2024-04-20 04:03:03 +00:00
mat
6d9d1a4569 add Client::join_with_proxy and fix tests 2024-04-20 03:59:50 +00:00
mat
353eda21ac socks5 support (#113) 2024-04-20 03:40:59 +00:00