Commit graph

865 commits

Author SHA1 Message Date
mat
473c74175c oops
accidentally left this random person's server ip in lmao
2023-01-21 22:36:59 -06:00
mat
c652bbc609 clippy 2023-01-21 22:25:22 -06:00
EightFactorial
9ee5e71bb1
Server functions and proxy example (#59)
* A couple useful things for servers

* Add proxy example

* Use Uuid's serde feature

* Add const options to proxy example

* Example crates go in dev-dependencies

* Warn instead of error

* Log address on login

* Requested changes

* add a test for deserializing game profile + random small changes

Co-authored-by: mat <github@matdoes.dev>
2023-01-21 22:14:23 -06:00
Nemo157
1059afa6fc
Allow using azalea-chat without azalea-buf to avoid unstable features (#58) 2023-01-20 15:31:02 -06:00
Ubuntu
c6b5664972 update a thing in cargo.toml 2023-01-18 17:52:40 +00:00
mat
a3033321f2 the repo is NOT called Cargo.toml 2023-01-15 22:05:31 -06:00
EightFactorial
54e00eb3df
Add function to get message sender's UUID (#56)
* Add uuid function for chat messages

* Does this please you, clippy?
2023-01-14 21:56:09 -06:00
dependabot[bot]
b86a89fa1e
Bump tokio from 1.22.0 to 1.23.1 (#55)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 22:01:50 -06:00
EightFactorial
0c30138d26
Add reason for disconnect (#54)
* Add reason for disconnect

Handles messages like "The server is full!" and "Banned by an operator."
Ban reasons are shown like "You are banned from this server.\nReason: foo"

* keep the kick reason as a Component in the error

Co-authored-by: mat <github@matdoes.dev>
2023-01-06 18:30:55 -06:00
mat
0bca3d8f5d log headers on unknown sessionserver error 2023-01-05 19:24:21 -06:00
mat
4760488c4a fix 2023-01-05 18:36:44 -06:00
mat
82fad00240 fix auto reauthentication
THANKS MOJANG
2023-01-05 18:28:35 -06:00
Shayne Hartford
fc88dabd95
Fix binary compilation (#53)
* Fix binary compilation

* Unnecessary reference
2023-01-05 14:31:25 -06:00
mat
fd18cae476 fix bot/main.rs 2022-12-11 13:34:36 -06:00
mat
fa290b30f2 fix PartialWorld::default() for tests 2022-12-11 03:23:20 -06:00
mat
b60a55e61e rename find_entity to entity_by & add entities_by 2022-12-11 02:24:31 -06:00
mat
37b9f10b3b make entities have a reference to WeakWorlds instead
... and other exciting bug fixes
2022-12-11 00:15:37 -06:00
Ubuntu
2d6737b247 (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
Ubuntu
b6d0b3744d (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
Ubuntu
16be171fb4 (cargo-release) version 0.5.0 2022-12-09 15:34:29 +00:00
Ubuntu
6a5008b0f7 (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
Ubuntu
4484411489 (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
Ubuntu
b0de28d9bd (cargo-release) version 0.5.0 2022-12-09 15:34:28 +00:00
Ubuntu
0cce10d1a5 (cargo-release) version 0.5.0 2022-12-09 15:34:27 +00:00
Ubuntu
a6a0839521 (cargo-release) version 0.5.0 2022-12-09 15:34:27 +00:00
Ubuntu
ebffd5d77e (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
Ubuntu
75db835bfc (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
Ubuntu
3baae656c0 (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
Ubuntu
aa05eeac50 (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
Ubuntu
6b3b691376 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
Ubuntu
fd6da211b7 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
Ubuntu
9ef09d75de (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
Ubuntu
5d1b8e0339 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
Ubuntu
88fd99ca52 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
Ubuntu
caf684a9ff (cargo-release) version 0.5.0 2022-12-09 15:34:24 +00:00
Ubuntu
2c77ea282f (cargo-release) version 0.5.0 2022-12-09 15:34:24 +00:00
Ubuntu
d11d413a89 auto replace version in azalea/src/lib.rs 2022-12-09 15:31:59 +00:00
Ubuntu
89c29b7a19 mention docs in readme 2022-12-09 15:15:05 +00:00
Ubuntu
ca00dbab12 Merge branch 'main' of https://github.com/mat-1/azalea into main 2022-12-09 15:13:14 +00:00
Ubuntu
f009761247 fix example in docs 2022-12-09 15:13:08 +00:00
mat
70e2dfed16 wrap_comments = true 2022-12-08 18:39:35 -06:00
Ubuntu
f2076daba5 fix a doc comment 2022-12-08 17:01:33 +00:00
mat
431f9e90a7
Reauth on invalid session (#50)
* Reauth on invalid session

* fix to actually use new token and retry auth

* fix unused vars
2022-12-07 21:58:42 -06:00
mat
7d901e39bc
1.19.3 (#34)
* start updating to 22w42a

* work a bit more on 22w42a

* player chat packet

* serverbound hello packet

* Update mod.rs

* add more stuff to clientbound player chat packet

* ClientboundPlayerInfoUpdatePacket

* features enabled and container closed

* serverbound chat packets

* make it compile

* 22w43a

* ServerboundChatSessionUpdatePacket

* profile_public_key isn't Option anymore

* Update bitset.rs

* joining a server works

* fix entitydatavalue

* backtraces + fix clientbound chat message

* fix some warnings and add more ecomments

* 22w44a

* generate en_us.json

* add updating guide to codegen/readme

* fix some markdown

* update list of generated things

* metadata stuff

* Replace PJS generator mod with PixLyzer (#38)

* pixlizer extractor

* start working on shape extraction

* fix generating language

* fix pixlyzer shape generation

* use empty_shape

* generate blocks and shapes

* update pixlyzer dir

* Revert "update pixlyzer dir"

This reverts commit ee9a0e7a49.

* fix

* fix

* Revert "fix"

This reverts commit ad12ddcb00.

* fix

* detect pixlyzer fail

* fix pixlyzer

* 22w45a

* gen entities

* add async-trait dep

* update codegen/readme.md

* explain when rust_log should be used

* remove some unused code

* start fixing pixlyzer issues

* fix a thing in codegen

* almost fixed

* more progress towards 1.19.3

* 1.19.3-pre2

* fixes

* revert some hardcoded property names

* Delete clientbound_player_info_packet.rs

* handle 1.19.3 player info packets

* handle playerinforemove

* start updating to 1.19.3-rc1

* optional registries work

* fix some issues with 1.19.3

chat doesn't work yet

* aaaaaaaaaaaaaaaaa

* oh

* ignore unused shapes

* uncomment generate_blocks

* fix migrate

* 1.19.3-rc2

* fix clippy warnings

* 1.19.3-rc3

* split the azalea-buf macro into separate modules

* improve Recipe in protocol

* 1.19.3
2022-12-07 21:09:58 -06:00
EightFactorial
9f5e5c092b
Complete ClientboundCommand{Suggestion}sPacket, Serde support for NBT Tags (#49)
* Serializing ClientboundStatusResponsePacket

Enable serialization of ClientboundStatusResponsePacket

* Update clientbound_status_response_packet.rs

Add options previewsChat and enforcesSecureChat

* Serialize Style and TextColor

* Serialize BaseComponent

* Serialize TextComponent

* Fix Style

* Serialize Component

* Fix multiple formats per message, fix reset tag

* Fix Style, again

* Use FlatMapSerializer

* Forgot italics

* Count struct fields, reorganize logic

* Serialize TranslatableComponent

* Rewrite TextComponent Serializer

* Fix using TextColor::Parse

* Code Cleanup

* Add default attribute, just in case

* Clippy

* use serde derive feature + preferred formatting choices

* McBufWritable for BrigadierNodeStub

* Thanks Clippy...

* Implement suggestions in azalea-brigadier

* Serde support for NBT Tags

* Serde options

* Forgot Options

* Oops, that's McBufWritable for BrigadierParser

* Fix McBufWritable for SlotData

* Complete ClientboundUpdateRecipesPacket

* fix some issues

* better impl McBufReadable for Suggestions

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: mat <github@matdoes.dev>
2022-12-06 20:48:48 -06:00
mat
e99a822995 change to_ansi to not take args 2022-12-04 20:58:14 -06:00
mat
a5aa8ea0c0 revert recommending azaleamc:matrix.org because the matdoes.dev space works 2022-12-04 17:18:39 -06:00
mat
d4830b4e07 also change matrix to azaleamc:matrix.org 2022-12-04 17:14:04 -06:00
mat
5d44555655 fix matrix and discord invites 2022-12-04 17:13:42 -06:00
mat
3b56fce2c5 add matrix and discord to readme 2022-12-03 22:04:39 -06:00