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

231 commits

Author SHA1 Message Date
mat
615d8f9d2a bump minimum rust version and improve pathfinder docs 2024-12-28 02:10:05 +00:00
mat
ebaf5128fb better pathfinder debug messages 2024-12-28 01:48:25 +00:00
mat
5693191b57 implement fluid_shape 2024-12-27 12:35:25 +00:00
mat
04036b6e4a implement BlockState::outline_shape 2024-12-27 12:35:18 +00:00
mat
6ccd44e28d better astar WeightedNode::cmp 2024-12-27 06:57:08 +00:00
mat
185ed84dbb don't save Movement type while pathfinding as an optimization, recalculate it later in reconstruct_path 2024-12-27 06:27:16 +00:00
mat
33e1a1326a patch path on timeout instead of recalculating everything 2024-12-26 12:36:41 +00:00
mat
344834c724 better pathfinder timeouts 2024-12-26 08:03:55 +00:00
mat
adb56b7eb2 make a_star function use an IndexMap like the pathfinding crate 2024-12-26 07:42:35 +00:00
mat
3c83e5b24a replace priority_queue crate with std BinaryHeap 2024-12-26 05:52:46 +00:00
mat
e11a902fba patch pathfinder obstructions instead of just truncating the path 2024-12-25 12:09:27 +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
0ee9ed50e3 optimize pathfinder 2024-12-25 03:00:48 +00:00
mat
d67aa07c13 optimize cost_for_breaking_block by making its cache an UnsafeCell instead 2024-12-24 12:41:18 +00:00
mat
a599b5614e make BlockState a u16 and add a BlockStateIntegerRepr type 2024-12-24 09:40:29 +00:00
mat
f03e0c2235 fix parsing Dust particle and treat waterlogged blocks as liquid in pathfinder 2024-12-24 08:48:36 +00:00
mat
de5a53ce08 add additional pathfinder test and fix pathfinder failure 2024-12-24 05:18:33 +00:00
mat
958848e8ed improve some docs and apis related to pathfinder 2024-12-24 04:37:55 +00:00
mat
30cbeecdfe update outdated doc in Swarm and remove unnecessary generics 2024-12-23 13:10:40 +00:00
mat
8772661772 lift requirement on anyhow for handler function 2024-12-23 10:34:44 +00:00
mat
3b1fe490b0 make testbot take cli args 2024-12-23 01:12:27 +00:00
mat
98e5efb577 fix flakey pathfinder tests by moving stop_pathfinding_on_instance_change to be before path_found_listener 2024-12-21 02:57:19 +00: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
mat
097a620de1 fix for latest nightly by changing the FixedBitSet generic to take bytes instead of bits 2024-12-11 03:25:36 +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
f364ad6b21 switch some packet structs to unit structs 2024-11-28 20:33:39 +00: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
a8125cd198
Add SwarmBuilder::add_account_with_opts (#185) 2024-11-20 22:43:21 -06:00
Shayne Hartford
3cf17cb896
Add more derives to the pathfinder goals for flexibility (#183) 2024-11-15 21:38:18 -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
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
73091d8f93 fix sometimes being able to mine blocks through walls 2024-08-15 01:25:11 +00:00
mat
dec544a52b fix ClientboundLevelParticlesPacket errors and pathfinder /particle errors 2024-08-15 01:24:03 +00:00
mat
ea64fba7f6
upgrade to simdnbt 0.6 (#160) 2024-07-05 00:45:45 -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
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
mat
b66b5b6b90 add functions to ClientBuilder and SwarmBuilder for custom addresses 2024-04-09 07:15:33 +00:00
mat
cadc5605ec make recalculate_near_end_of_path public
so other plugins can do .after(recalculate_near_end_of_path)
2024-04-09 07:15:33 +00:00
mat
4f288b1c03 optimize physics a bit more 2024-02-26 00:55:46 -06:00
mat
018ab55bdb optimize physics 2024-02-25 16:53:08 -06:00
mat
13426b035e add Display for Vec3, add SimulationSet, and add EntityChunkPos component 2024-02-24 21:03:02 -06:00
mat
28de14f984 fix pathfinder A* using slightly suboptimal paths sometimes 2024-02-23 20:48:26 -06:00
mat
038807e607 fix for hypixel limbo 2024-02-22 22:41:54 -06:00