aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-22 04:33:58 +0000
committermat <github@matdoes.dev>2022-04-22 04:33:58 +0000
commit248f752748a0033db7f8242ee0ecd73ea8ce8ec9 (patch)
tree5412418d61b91d5b4174685cdb544a561e22eae6
parent7cdd4171453ead8645b082f0cf5879f7d1a39660 (diff)
downloadazalea-drasl-248f752748a0033db7f8242ee0ecd73ea8ce8ec9.tar.xz
simplify error handling
-rwxr-xr-x[-rw-r--r--].gitignore0
-rwxr-xr-x[-rw-r--r--].gitpod.yml0
-rwxr-xr-x[-rw-r--r--].vscode/settings.json0
-rwxr-xr-x[-rw-r--r--]Cargo.lock0
-rwxr-xr-x[-rw-r--r--]Cargo.toml0
-rwxr-xr-x[-rw-r--r--]README.md0
-rwxr-xr-x[-rw-r--r--]azalea-auth/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-auth/src/game_profile.rs0
-rwxr-xr-x[-rw-r--r--]azalea-auth/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/README.md0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/arguments/argument_type.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/arguments/integer_argument_type.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/arguments/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/builder/argument_builder.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/builder/literal_argument_builder.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/builder/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/builder/required_argument_builder.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/command_dispatcher.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/command_context.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/command_context_builder.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/parsed_argument.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/parsed_command_node.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/context/string_range.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/exceptions/builtin_exceptions.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/exceptions/command_syntax_exception.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/exceptions/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/message.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/modifier.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/parse_results.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/string_reader.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/src/tree/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/bool_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/double_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/float_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/integer_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/long_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/arguments/string_argument_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/builder/argument_builder_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/builder/literal_argument_builder_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/builder/required_argument_builder_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/command_dispatcher_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/command_dispatcher_usages_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/command_suggestions_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/context/command_context_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/context/parsed_argument_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/exceptions/dynamic_command_syntax_exception_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/exceptions/simple_command_syntax_exception_type_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/string_reader_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/suggestion/suggestion_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/suggestion/suggestions_builder_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/suggestion/suggestions_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/tree/abstract_command_node_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/tree/argument_command_node_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/tree/literal_command_node_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-brigadier/tests/tree/root_command_node_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-chat/README.md0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/base_component.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/component.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/events.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/style.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/text_component.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/src/translatable_component.rs0
-rwxr-xr-x[-rw-r--r--]azalea-chat/tests/integration_test.rs0
-rwxr-xr-x[-rw-r--r--]azalea-client/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-client/README.md0
-rwxr-xr-x[-rw-r--r--]azalea-client/src/connect.rs0
-rwxr-xr-x[-rw-r--r--]azalea-client/src/crypt.rs0
-rwxr-xr-x[-rw-r--r--]azalea-client/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-client/src/ping.rs0
-rwxr-xr-x[-rw-r--r--]azalea-core/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-core/src/difficulty.rs0
-rwxr-xr-x[-rw-r--r--]azalea-core/src/game_type.rs0
-rwxr-xr-x[-rw-r--r--]azalea-core/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-core/src/resource_location.rs0
-rwxr-xr-x[-rw-r--r--]azalea-core/src/serializable_uuid.rs0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/README.md0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/benches/my_benchmark.rs0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/src/decode.rs34
-rwxr-xr-x[-rw-r--r--]azalea-nbt/src/encode.rs0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/src/error.rs11
-rwxr-xr-x[-rw-r--r--]azalea-nbt/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/src/tag.rs0
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/bigtest.nbtbin507 -> 507 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/complex_player.datbin1379 -> 1379 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/hello_world.nbtbin33 -> 33 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/inttest.nbtbin95 -> 95 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/level.datbin1922 -> 1922 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/simple_player.datbin440 -> 440 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/stringtest.nbtbin251 -> 251 bytes
-rwxr-xr-x[-rw-r--r--]azalea-nbt/tests/tests.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/README.md0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/packet-macros/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/packet-macros/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/connect.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/lib.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/mc_buf/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/mc_buf/read.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/mc_buf/write.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_custom_payload_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_login_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_set_carried_item_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/clientbound_update_view_distance_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/game/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/handshake/client_intention_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/handshake/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/clientbound_hello_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/login/serverbound_hello_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/status/clientbound_status_response_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/status/mod.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/packets/status/serverbound_status_request_packet.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/read.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/resolver.rs0
-rwxr-xr-x[-rw-r--r--]azalea-protocol/src/write.rs0
-rwxr-xr-x[-rw-r--r--]bot/Cargo.toml0
-rwxr-xr-x[-rw-r--r--]bot/src/main.rs0
131 files changed, 28 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index 4990fff7..4990fff7 100644..100755
--- a/.gitignore
+++ b/.gitignore
diff --git a/.gitpod.yml b/.gitpod.yml
index f6d0d2af..f6d0d2af 100644..100755
--- a/.gitpod.yml
+++ b/.gitpod.yml
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 3b614348..3b614348 100644..100755
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
diff --git a/Cargo.lock b/Cargo.lock
index 8d94c26c..8d94c26c 100644..100755
--- a/Cargo.lock
+++ b/Cargo.lock
diff --git a/Cargo.toml b/Cargo.toml
index 7f958207..7f958207 100644..100755
--- a/Cargo.toml
+++ b/Cargo.toml
diff --git a/README.md b/README.md
index ed6ed46f..ed6ed46f 100644..100755
--- a/README.md
+++ b/README.md
diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml
index aa9b7bdb..aa9b7bdb 100644..100755
--- a/azalea-auth/Cargo.toml
+++ b/azalea-auth/Cargo.toml
diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs
index d75f60a4..d75f60a4 100644..100755
--- a/azalea-auth/src/game_profile.rs
+++ b/azalea-auth/src/game_profile.rs
diff --git a/azalea-auth/src/lib.rs b/azalea-auth/src/lib.rs
index 773ea1d9..773ea1d9 100644..100755
--- a/azalea-auth/src/lib.rs
+++ b/azalea-auth/src/lib.rs
diff --git a/azalea-brigadier/Cargo.toml b/azalea-brigadier/Cargo.toml
index a7ebf618..a7ebf618 100644..100755
--- a/azalea-brigadier/Cargo.toml
+++ b/azalea-brigadier/Cargo.toml
diff --git a/azalea-brigadier/README.md b/azalea-brigadier/README.md
index a7318566..a7318566 100644..100755
--- a/azalea-brigadier/README.md
+++ b/azalea-brigadier/README.md
diff --git a/azalea-brigadier/src/arguments/argument_type.rs b/azalea-brigadier/src/arguments/argument_type.rs
index 029e4696..029e4696 100644..100755
--- a/azalea-brigadier/src/arguments/argument_type.rs
+++ b/azalea-brigadier/src/arguments/argument_type.rs
diff --git a/azalea-brigadier/src/arguments/integer_argument_type.rs b/azalea-brigadier/src/arguments/integer_argument_type.rs
index 336046a7..336046a7 100644..100755
--- a/azalea-brigadier/src/arguments/integer_argument_type.rs
+++ b/azalea-brigadier/src/arguments/integer_argument_type.rs
diff --git a/azalea-brigadier/src/arguments/mod.rs b/azalea-brigadier/src/arguments/mod.rs
index dec39297..dec39297 100644..100755
--- a/azalea-brigadier/src/arguments/mod.rs
+++ b/azalea-brigadier/src/arguments/mod.rs
diff --git a/azalea-brigadier/src/builder/argument_builder.rs b/azalea-brigadier/src/builder/argument_builder.rs
index d26b2a8a..d26b2a8a 100644..100755
--- a/azalea-brigadier/src/builder/argument_builder.rs
+++ b/azalea-brigadier/src/builder/argument_builder.rs
diff --git a/azalea-brigadier/src/builder/literal_argument_builder.rs b/azalea-brigadier/src/builder/literal_argument_builder.rs
index 6627ffdc..6627ffdc 100644..100755
--- a/azalea-brigadier/src/builder/literal_argument_builder.rs
+++ b/azalea-brigadier/src/builder/literal_argument_builder.rs
diff --git a/azalea-brigadier/src/builder/mod.rs b/azalea-brigadier/src/builder/mod.rs
index 26f2f644..26f2f644 100644..100755
--- a/azalea-brigadier/src/builder/mod.rs
+++ b/azalea-brigadier/src/builder/mod.rs
diff --git a/azalea-brigadier/src/builder/required_argument_builder.rs b/azalea-brigadier/src/builder/required_argument_builder.rs
index 9d4d9e0a..9d4d9e0a 100644..100755
--- a/azalea-brigadier/src/builder/required_argument_builder.rs
+++ b/azalea-brigadier/src/builder/required_argument_builder.rs
diff --git a/azalea-brigadier/src/command_dispatcher.rs b/azalea-brigadier/src/command_dispatcher.rs
index eab42dd8..eab42dd8 100644..100755
--- a/azalea-brigadier/src/command_dispatcher.rs
+++ b/azalea-brigadier/src/command_dispatcher.rs
diff --git a/azalea-brigadier/src/context/command_context.rs b/azalea-brigadier/src/context/command_context.rs
index 1834a73d..1834a73d 100644..100755
--- a/azalea-brigadier/src/context/command_context.rs
+++ b/azalea-brigadier/src/context/command_context.rs
diff --git a/azalea-brigadier/src/context/command_context_builder.rs b/azalea-brigadier/src/context/command_context_builder.rs
index f192f6b7..f192f6b7 100644..100755
--- a/azalea-brigadier/src/context/command_context_builder.rs
+++ b/azalea-brigadier/src/context/command_context_builder.rs
diff --git a/azalea-brigadier/src/context/mod.rs b/azalea-brigadier/src/context/mod.rs
index d535602a..d535602a 100644..100755
--- a/azalea-brigadier/src/context/mod.rs
+++ b/azalea-brigadier/src/context/mod.rs
diff --git a/azalea-brigadier/src/context/parsed_argument.rs b/azalea-brigadier/src/context/parsed_argument.rs
index 3302b1be..3302b1be 100644..100755
--- a/azalea-brigadier/src/context/parsed_argument.rs
+++ b/azalea-brigadier/src/context/parsed_argument.rs
diff --git a/azalea-brigadier/src/context/parsed_command_node.rs b/azalea-brigadier/src/context/parsed_command_node.rs
index ed49928d..ed49928d 100644..100755
--- a/azalea-brigadier/src/context/parsed_command_node.rs
+++ b/azalea-brigadier/src/context/parsed_command_node.rs
diff --git a/azalea-brigadier/src/context/string_range.rs b/azalea-brigadier/src/context/string_range.rs
index 8ca88624..8ca88624 100644..100755
--- a/azalea-brigadier/src/context/string_range.rs
+++ b/azalea-brigadier/src/context/string_range.rs
diff --git a/azalea-brigadier/src/exceptions/builtin_exceptions.rs b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
index 09951a03..09951a03 100644..100755
--- a/azalea-brigadier/src/exceptions/builtin_exceptions.rs
+++ b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
diff --git a/azalea-brigadier/src/exceptions/command_syntax_exception.rs b/azalea-brigadier/src/exceptions/command_syntax_exception.rs
index 4bfe9cda..4bfe9cda 100644..100755
--- a/azalea-brigadier/src/exceptions/command_syntax_exception.rs
+++ b/azalea-brigadier/src/exceptions/command_syntax_exception.rs
diff --git a/azalea-brigadier/src/exceptions/mod.rs b/azalea-brigadier/src/exceptions/mod.rs
index 6b9c8d62..6b9c8d62 100644..100755
--- a/azalea-brigadier/src/exceptions/mod.rs
+++ b/azalea-brigadier/src/exceptions/mod.rs
diff --git a/azalea-brigadier/src/lib.rs b/azalea-brigadier/src/lib.rs
index a294eb19..a294eb19 100644..100755
--- a/azalea-brigadier/src/lib.rs
+++ b/azalea-brigadier/src/lib.rs
diff --git a/azalea-brigadier/src/message.rs b/azalea-brigadier/src/message.rs
index 75e07d4e..75e07d4e 100644..100755
--- a/azalea-brigadier/src/message.rs
+++ b/azalea-brigadier/src/message.rs
diff --git a/azalea-brigadier/src/modifier.rs b/azalea-brigadier/src/modifier.rs
index d40d59f9..d40d59f9 100644..100755
--- a/azalea-brigadier/src/modifier.rs
+++ b/azalea-brigadier/src/modifier.rs
diff --git a/azalea-brigadier/src/parse_results.rs b/azalea-brigadier/src/parse_results.rs
index 3698ae82..3698ae82 100644..100755
--- a/azalea-brigadier/src/parse_results.rs
+++ b/azalea-brigadier/src/parse_results.rs
diff --git a/azalea-brigadier/src/string_reader.rs b/azalea-brigadier/src/string_reader.rs
index 9eb09b57..9eb09b57 100644..100755
--- a/azalea-brigadier/src/string_reader.rs
+++ b/azalea-brigadier/src/string_reader.rs
diff --git a/azalea-brigadier/src/tree/mod.rs b/azalea-brigadier/src/tree/mod.rs
index b6181c73..b6181c73 100644..100755
--- a/azalea-brigadier/src/tree/mod.rs
+++ b/azalea-brigadier/src/tree/mod.rs
diff --git a/azalea-brigadier/tests/arguments/bool_argument_type_test.rs b/azalea-brigadier/tests/arguments/bool_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/bool_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/bool_argument_type_test.rs
diff --git a/azalea-brigadier/tests/arguments/double_argument_type_test.rs b/azalea-brigadier/tests/arguments/double_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/double_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/double_argument_type_test.rs
diff --git a/azalea-brigadier/tests/arguments/float_argument_type_test.rs b/azalea-brigadier/tests/arguments/float_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/float_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/float_argument_type_test.rs
diff --git a/azalea-brigadier/tests/arguments/integer_argument_type_test.rs b/azalea-brigadier/tests/arguments/integer_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/integer_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/integer_argument_type_test.rs
diff --git a/azalea-brigadier/tests/arguments/long_argument_type_test.rs b/azalea-brigadier/tests/arguments/long_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/long_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/long_argument_type_test.rs
diff --git a/azalea-brigadier/tests/arguments/string_argument_type_test.rs b/azalea-brigadier/tests/arguments/string_argument_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/arguments/string_argument_type_test.rs
+++ b/azalea-brigadier/tests/arguments/string_argument_type_test.rs
diff --git a/azalea-brigadier/tests/builder/argument_builder_test.rs b/azalea-brigadier/tests/builder/argument_builder_test.rs
index e570c988..e570c988 100644..100755
--- a/azalea-brigadier/tests/builder/argument_builder_test.rs
+++ b/azalea-brigadier/tests/builder/argument_builder_test.rs
diff --git a/azalea-brigadier/tests/builder/literal_argument_builder_test.rs b/azalea-brigadier/tests/builder/literal_argument_builder_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/builder/literal_argument_builder_test.rs
+++ b/azalea-brigadier/tests/builder/literal_argument_builder_test.rs
diff --git a/azalea-brigadier/tests/builder/required_argument_builder_test.rs b/azalea-brigadier/tests/builder/required_argument_builder_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/builder/required_argument_builder_test.rs
+++ b/azalea-brigadier/tests/builder/required_argument_builder_test.rs
diff --git a/azalea-brigadier/tests/command_dispatcher_test.rs b/azalea-brigadier/tests/command_dispatcher_test.rs
index cb33ac73..cb33ac73 100644..100755
--- a/azalea-brigadier/tests/command_dispatcher_test.rs
+++ b/azalea-brigadier/tests/command_dispatcher_test.rs
diff --git a/azalea-brigadier/tests/command_dispatcher_usages_test.rs b/azalea-brigadier/tests/command_dispatcher_usages_test.rs
index 8b137891..8b137891 100644..100755
--- a/azalea-brigadier/tests/command_dispatcher_usages_test.rs
+++ b/azalea-brigadier/tests/command_dispatcher_usages_test.rs
diff --git a/azalea-brigadier/tests/command_suggestions_test.rs b/azalea-brigadier/tests/command_suggestions_test.rs
index 8b137891..8b137891 100644..100755
--- a/azalea-brigadier/tests/command_suggestions_test.rs
+++ b/azalea-brigadier/tests/command_suggestions_test.rs
diff --git a/azalea-brigadier/tests/context/command_context_test.rs b/azalea-brigadier/tests/context/command_context_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/context/command_context_test.rs
+++ b/azalea-brigadier/tests/context/command_context_test.rs
diff --git a/azalea-brigadier/tests/context/parsed_argument_test.rs b/azalea-brigadier/tests/context/parsed_argument_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/context/parsed_argument_test.rs
+++ b/azalea-brigadier/tests/context/parsed_argument_test.rs
diff --git a/azalea-brigadier/tests/exceptions/dynamic_command_syntax_exception_type_test.rs b/azalea-brigadier/tests/exceptions/dynamic_command_syntax_exception_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/exceptions/dynamic_command_syntax_exception_type_test.rs
+++ b/azalea-brigadier/tests/exceptions/dynamic_command_syntax_exception_type_test.rs
diff --git a/azalea-brigadier/tests/exceptions/simple_command_syntax_exception_type_test.rs b/azalea-brigadier/tests/exceptions/simple_command_syntax_exception_type_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/exceptions/simple_command_syntax_exception_type_test.rs
+++ b/azalea-brigadier/tests/exceptions/simple_command_syntax_exception_type_test.rs
diff --git a/azalea-brigadier/tests/string_reader_test.rs b/azalea-brigadier/tests/string_reader_test.rs
index 5008eff8..5008eff8 100644..100755
--- a/azalea-brigadier/tests/string_reader_test.rs
+++ b/azalea-brigadier/tests/string_reader_test.rs
diff --git a/azalea-brigadier/tests/suggestion/suggestion_test.rs b/azalea-brigadier/tests/suggestion/suggestion_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/suggestion/suggestion_test.rs
+++ b/azalea-brigadier/tests/suggestion/suggestion_test.rs
diff --git a/azalea-brigadier/tests/suggestion/suggestions_builder_test.rs b/azalea-brigadier/tests/suggestion/suggestions_builder_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/suggestion/suggestions_builder_test.rs
+++ b/azalea-brigadier/tests/suggestion/suggestions_builder_test.rs
diff --git a/azalea-brigadier/tests/suggestion/suggestions_test.rs b/azalea-brigadier/tests/suggestion/suggestions_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/suggestion/suggestions_test.rs
+++ b/azalea-brigadier/tests/suggestion/suggestions_test.rs
diff --git a/azalea-brigadier/tests/tree/abstract_command_node_test.rs b/azalea-brigadier/tests/tree/abstract_command_node_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/tree/abstract_command_node_test.rs
+++ b/azalea-brigadier/tests/tree/abstract_command_node_test.rs
diff --git a/azalea-brigadier/tests/tree/argument_command_node_test.rs b/azalea-brigadier/tests/tree/argument_command_node_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/tree/argument_command_node_test.rs
+++ b/azalea-brigadier/tests/tree/argument_command_node_test.rs
diff --git a/azalea-brigadier/tests/tree/literal_command_node_test.rs b/azalea-brigadier/tests/tree/literal_command_node_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/tree/literal_command_node_test.rs
+++ b/azalea-brigadier/tests/tree/literal_command_node_test.rs
diff --git a/azalea-brigadier/tests/tree/root_command_node_test.rs b/azalea-brigadier/tests/tree/root_command_node_test.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-brigadier/tests/tree/root_command_node_test.rs
+++ b/azalea-brigadier/tests/tree/root_command_node_test.rs
diff --git a/azalea-chat/Cargo.toml b/azalea-chat/Cargo.toml
index 7019e5bf..7019e5bf 100644..100755
--- a/azalea-chat/Cargo.toml
+++ b/azalea-chat/Cargo.toml
diff --git a/azalea-chat/README.md b/azalea-chat/README.md
index 2bc9d418..2bc9d418 100644..100755
--- a/azalea-chat/README.md
+++ b/azalea-chat/README.md
diff --git a/azalea-chat/src/base_component.rs b/azalea-chat/src/base_component.rs
index fa39a11c..fa39a11c 100644..100755
--- a/azalea-chat/src/base_component.rs
+++ b/azalea-chat/src/base_component.rs
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs
index 9f065c47..9f065c47 100644..100755
--- a/azalea-chat/src/component.rs
+++ b/azalea-chat/src/component.rs
diff --git a/azalea-chat/src/events.rs b/azalea-chat/src/events.rs
index a547169e..a547169e 100644..100755
--- a/azalea-chat/src/events.rs
+++ b/azalea-chat/src/events.rs
diff --git a/azalea-chat/src/lib.rs b/azalea-chat/src/lib.rs
index b7035e13..b7035e13 100644..100755
--- a/azalea-chat/src/lib.rs
+++ b/azalea-chat/src/lib.rs
diff --git a/azalea-chat/src/style.rs b/azalea-chat/src/style.rs
index 4e3b24de..4e3b24de 100644..100755
--- a/azalea-chat/src/style.rs
+++ b/azalea-chat/src/style.rs
diff --git a/azalea-chat/src/text_component.rs b/azalea-chat/src/text_component.rs
index 6c43f8b7..6c43f8b7 100644..100755
--- a/azalea-chat/src/text_component.rs
+++ b/azalea-chat/src/text_component.rs
diff --git a/azalea-chat/src/translatable_component.rs b/azalea-chat/src/translatable_component.rs
index 0709f7bf..0709f7bf 100644..100755
--- a/azalea-chat/src/translatable_component.rs
+++ b/azalea-chat/src/translatable_component.rs
diff --git a/azalea-chat/tests/integration_test.rs b/azalea-chat/tests/integration_test.rs
index 1278adfa..1278adfa 100644..100755
--- a/azalea-chat/tests/integration_test.rs
+++ b/azalea-chat/tests/integration_test.rs
diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml
index 7e22f727..7e22f727 100644..100755
--- a/azalea-client/Cargo.toml
+++ b/azalea-client/Cargo.toml
diff --git a/azalea-client/README.md b/azalea-client/README.md
index 328eb0d5..328eb0d5 100644..100755
--- a/azalea-client/README.md
+++ b/azalea-client/README.md
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs
index 7e6dba51..7e6dba51 100644..100755
--- a/azalea-client/src/connect.rs
+++ b/azalea-client/src/connect.rs
diff --git a/azalea-client/src/crypt.rs b/azalea-client/src/crypt.rs
index e69de29b..e69de29b 100644..100755
--- a/azalea-client/src/crypt.rs
+++ b/azalea-client/src/crypt.rs
diff --git a/azalea-client/src/lib.rs b/azalea-client/src/lib.rs
index 8c1bcfe9..8c1bcfe9 100644..100755
--- a/azalea-client/src/lib.rs
+++ b/azalea-client/src/lib.rs
diff --git a/azalea-client/src/ping.rs b/azalea-client/src/ping.rs
index 8ecff7ca..8ecff7ca 100644..100755
--- a/azalea-client/src/ping.rs
+++ b/azalea-client/src/ping.rs
diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml
index b0139999..b0139999 100644..100755
--- a/azalea-core/Cargo.toml
+++ b/azalea-core/Cargo.toml
diff --git a/azalea-core/src/difficulty.rs b/azalea-core/src/difficulty.rs
index 21e980ba..21e980ba 100644..100755
--- a/azalea-core/src/difficulty.rs
+++ b/azalea-core/src/difficulty.rs
diff --git a/azalea-core/src/game_type.rs b/azalea-core/src/game_type.rs
index f5b9fb38..f5b9fb38 100644..100755
--- a/azalea-core/src/game_type.rs
+++ b/azalea-core/src/game_type.rs
diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs
index cdf07c43..cdf07c43 100644..100755
--- a/azalea-core/src/lib.rs
+++ b/azalea-core/src/lib.rs
diff --git a/azalea-core/src/resource_location.rs b/azalea-core/src/resource_location.rs
index 7e28a2a2..7e28a2a2 100644..100755
--- a/azalea-core/src/resource_location.rs
+++ b/azalea-core/src/resource_location.rs
diff --git a/azalea-core/src/serializable_uuid.rs b/azalea-core/src/serializable_uuid.rs
index f8c03b60..f8c03b60 100644..100755
--- a/azalea-core/src/serializable_uuid.rs
+++ b/azalea-core/src/serializable_uuid.rs
diff --git a/azalea-nbt/Cargo.toml b/azalea-nbt/Cargo.toml
index d4817233..d4817233 100644..100755
--- a/azalea-nbt/Cargo.toml
+++ b/azalea-nbt/Cargo.toml
diff --git a/azalea-nbt/README.md b/azalea-nbt/README.md
index 0573bce2..0573bce2 100644..100755
--- a/azalea-nbt/README.md
+++ b/azalea-nbt/README.md
diff --git a/azalea-nbt/benches/my_benchmark.rs b/azalea-nbt/benches/my_benchmark.rs
index 7b44d610..7b44d610 100644..100755
--- a/azalea-nbt/benches/my_benchmark.rs
+++ b/azalea-nbt/benches/my_benchmark.rs
diff --git a/azalea-nbt/src/decode.rs b/azalea-nbt/src/decode.rs
index 41689a46..e4968811 100644..100755
--- a/azalea-nbt/src/decode.rs
+++ b/azalea-nbt/src/decode.rs
@@ -11,13 +11,13 @@ async fn read_string<R>(stream: &mut R) -> Result<String, Error>
where
R: AsyncRead + std::marker::Unpin,
{
- let length = stream.read_u16().await.map_err(|_| Error::InvalidTag)?;
+ let length = stream.read_u16().await?;
let mut buf = Vec::with_capacity(length as usize);
for _ in 0..length {
- buf.push(stream.read_u8().await.map_err(|_| Error::InvalidTag)?);
+ buf.push(stream.read_u8().await?);
}
- String::from_utf8(buf).map_err(|_| Error::InvalidTag)
+ Ok(String::from_utf8(buf)?)
}
impl Tag {
@@ -31,26 +31,26 @@ impl Tag {
// a TAG_Compound, and is not named despite being in a TAG_Compound
0 => Tag::End,
// A single signed byte
- 1 => Tag::Byte(stream.read_i8().await.map_err(|_| Error::InvalidTag)?),
+ 1 => Tag::Byte(stream.read_i8().await?),
// A single signed, big endian 16 bit integer
- 2 => Tag::Short(stream.read_i16().await.map_err(|_| Error::InvalidTag)?),
+ 2 => Tag::Short(stream.read_i16().await?),
// A single signed, big endian 32 bit integer
- 3 => Tag::Int(stream.read_i32().await.map_err(|_| Error::InvalidTag)?),
+ 3 => Tag::Int(stream.read_i32().await?),
// A single signed, big endian 64 bit integer
- 4 => Tag::Long(stream.read_i64().await.map_err(|_| Error::InvalidTag)?),
+ 4 => Tag::Long(stream.read_i64().await?),
// A single, big endian IEEE-754 single-precision floating point
// number (NaN possible)
- 5 => Tag::Float(stream.read_f32().await.map_err(|_| Error::InvalidTag)?),
+ 5 => Tag::Float(stream.read_f32().await?),
// A single, big endian IEEE-754 double-precision floating point
// number (NaN possible)
- 6 => Tag::Double(stream.read_f64().await.map_err(|_| Error::InvalidTag)?),
+ 6 => Tag::Double(stream.read_f64().await?),
// A length-prefixed array of signed bytes. The prefix is a signed
// integer (thus 4 bytes)
7 => {
- let length = stream.read_i32().await.map_err(|_| Error::InvalidTag)?;
+ let length = stream.read_i32().await?;
let mut bytes = Vec::with_capacity(length as usize);
for _ in 0..length {
- bytes.push(stream.read_i8().await.map_err(|_| Error::InvalidTag)?);
+ bytes.push(stream.read_i8().await?);
}
Tag::ByteArray(bytes)
}
@@ -67,8 +67,8 @@ impl Tag {
// another reference implementation by Mojang uses 1 instead;
// parsers should accept any type if the length is <= 0).
9 => {
- let type_id = stream.read_u8().await.map_err(|_| Error::InvalidTag)?;
- let length = stream.read_i32().await.map_err(|_| Error::InvalidTag)?;
+ let type_id = stream.read_u8().await?;
+ let length = stream.read_i32().await?;
let mut list = Vec::with_capacity(length as usize);
for _ in 0..length {
list.push(Tag::read_known(stream, type_id).await?);
@@ -94,20 +94,20 @@ impl Tag {
// signed integer (thus 4 bytes) and indicates the number of 4 byte
// integers.
11 => {
- let length = stream.read_i32().await.map_err(|_| Error::InvalidTag)?;
+ let length = stream.read_i32().await?;
let mut ints = Vec::with_capacity(length as usize);
for _ in 0..length {
- ints.push(stream.read_i32().await.map_err(|_| Error::InvalidTag)?);
+ ints.push(stream.read_i32().await?);
}
Tag::IntArray(ints)
}
// A length-prefixed array of signed longs. The prefix is a signed
// integer (thus 4 bytes) and indicates the number of 8 byte longs.
12 => {
- let length = stream.read_i32().await.map_err(|_| Error::InvalidTag)?;
+ let length = stream.read_i32().await?;
let mut longs = Vec::with_capacity(length as usize);
for _ in 0..length {
- longs.push(stream.read_i64().await.map_err(|_| Error::InvalidTag)?);
+ longs.push(stream.read_i64().await?);
}
Tag::LongArray(longs)
}
diff --git a/azalea-nbt/src/encode.rs b/azalea-nbt/src/encode.rs
index 9ce4faf4..9ce4faf4 100644..100755
--- a/azalea-nbt/src/encode.rs
+++ b/azalea-nbt/src/encode.rs
diff --git a/azalea-nbt/src/error.rs b/azalea-nbt/src/error.rs
index 05ff15e0..278d2770 100644..100755
--- a/azalea-nbt/src/error.rs
+++ b/azalea-nbt/src/error.rs
@@ -14,3 +14,14 @@ impl std::fmt::Display for Error {
}
}
}
+
+impl From<std::io::Error> for Error {
+ fn from(err: std::io::Error) -> Self {
+ Error::WriteError
+ }
+}
+impl From<std::string::FromUtf8Error> for Error {
+ fn from(err: std::string::FromUtf8Error) -> Self {
+ Error::WriteError
+ }
+} \ No newline at end of file
diff --git a/azalea-nbt/src/lib.rs b/azalea-nbt/src/lib.rs
index d14fd929..d14fd929 100644..100755
--- a/azalea-nbt/src/lib.rs
+++ b/azalea-nbt/src/lib.rs
diff --git a/azalea-nbt/src/tag.rs b/azalea-nbt/src/tag.rs
index f11b8889..f11b8889 100644..100755
--- a/azalea-nbt/src/tag.rs
+++ b/azalea-nbt/src/tag.rs
diff --git a/azalea-nbt/tests/bigtest.nbt b/azalea-nbt/tests/bigtest.nbt
index dc3769bc..dc3769bc 100644..100755
--- a/azalea-nbt/tests/bigtest.nbt
+++ b/azalea-nbt/tests/bigtest.nbt
Binary files differ
diff --git a/azalea-nbt/tests/complex_player.dat b/azalea-nbt/tests/complex_player.dat
index d7f3fcbd..d7f3fcbd 100644..100755
--- a/azalea-nbt/tests/complex_player.dat
+++ b/azalea-nbt/tests/complex_player.dat
Binary files differ
diff --git a/azalea-nbt/tests/hello_world.nbt b/azalea-nbt/tests/hello_world.nbt
index f3f5e21a..f3f5e21a 100644..100755
--- a/azalea-nbt/tests/hello_world.nbt
+++ b/azalea-nbt/tests/hello_world.nbt
Binary files differ
diff --git a/azalea-nbt/tests/inttest.nbt b/azalea-nbt/tests/inttest.nbt
index ad9255f2..ad9255f2 100644..100755
--- a/azalea-nbt/tests/inttest.nbt
+++ b/azalea-nbt/tests/inttest.nbt
Binary files differ
diff --git a/azalea-nbt/tests/level.dat b/azalea-nbt/tests/level.dat
index e5d11b8c..e5d11b8c 100644..100755
--- a/azalea-nbt/tests/level.dat
+++ b/azalea-nbt/tests/level.dat
Binary files differ
diff --git a/azalea-nbt/tests/simple_player.dat b/azalea-nbt/tests/simple_player.dat
index e5091b41..e5091b41 100644..100755
--- a/azalea-nbt/tests/simple_player.dat
+++ b/azalea-nbt/tests/simple_player.dat
Binary files differ
diff --git a/azalea-nbt/tests/stringtest.nbt b/azalea-nbt/tests/stringtest.nbt
index ac111433..ac111433 100644..100755
--- a/azalea-nbt/tests/stringtest.nbt
+++ b/azalea-nbt/tests/stringtest.nbt
Binary files differ
diff --git a/azalea-nbt/tests/tests.rs b/azalea-nbt/tests/tests.rs
index 75b3a646..75b3a646 100644..100755
--- a/azalea-nbt/tests/tests.rs
+++ b/azalea-nbt/tests/tests.rs
diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml
index 37df8697..37df8697 100644..100755
--- a/azalea-protocol/Cargo.toml
+++ b/azalea-protocol/Cargo.toml
diff --git a/azalea-protocol/README.md b/azalea-protocol/README.md
index 6063ed39..6063ed39 100644..100755
--- a/azalea-protocol/README.md
+++ b/azalea-protocol/README.md
diff --git a/azalea-protocol/packet-macros/Cargo.toml b/azalea-protocol/packet-macros/Cargo.toml
index 5a301756..5a301756 100644..100755
--- a/azalea-protocol/packet-macros/Cargo.toml
+++ b/azalea-protocol/packet-macros/Cargo.toml
diff --git a/azalea-protocol/packet-macros/src/lib.rs b/azalea-protocol/packet-macros/src/lib.rs
index 45df7e81..45df7e81 100644..100755
--- a/azalea-protocol/packet-macros/src/lib.rs
+++ b/azalea-protocol/packet-macros/src/lib.rs
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs
index 3d910d3a..3d910d3a 100644..100755
--- a/azalea-protocol/src/connect.rs
+++ b/azalea-protocol/src/connect.rs
diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs
index 684add45..684add45 100644..100755
--- a/azalea-protocol/src/lib.rs
+++ b/azalea-protocol/src/lib.rs
diff --git a/azalea-protocol/src/mc_buf/mod.rs b/azalea-protocol/src/mc_buf/mod.rs
index a924431e..a924431e 100644..100755
--- a/azalea-protocol/src/mc_buf/mod.rs
+++ b/azalea-protocol/src/mc_buf/mod.rs
diff --git a/azalea-protocol/src/mc_buf/read.rs b/azalea-protocol/src/mc_buf/read.rs
index e036643e..e036643e 100644..100755
--- a/azalea-protocol/src/mc_buf/read.rs
+++ b/azalea-protocol/src/mc_buf/read.rs
diff --git a/azalea-protocol/src/mc_buf/write.rs b/azalea-protocol/src/mc_buf/write.rs
index 9330dccb..9330dccb 100644..100755
--- a/azalea-protocol/src/mc_buf/write.rs
+++ b/azalea-protocol/src/mc_buf/write.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs b/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs
index e12cfff3..e12cfff3 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_custom_payload_packet.rs b/azalea-protocol/src/packets/game/clientbound_custom_payload_packet.rs
index 134a3109..134a3109 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_custom_payload_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_custom_payload_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
index 1403630d..1403630d 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_login_packet.rs b/azalea-protocol/src/packets/game/clientbound_login_packet.rs
index 57869202..57869202 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_login_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_login_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
index f4f528cf..f4f528cf 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_set_carried_item_packet.rs b/azalea-protocol/src/packets/game/clientbound_set_carried_item_packet.rs
index 4f0bf575..4f0bf575 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_set_carried_item_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_set_carried_item_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs b/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs
index a2f17370..a2f17370 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs
diff --git a/azalea-protocol/src/packets/game/clientbound_update_view_distance_packet.rs b/azalea-protocol/src/packets/game/clientbound_update_view_distance_packet.rs
index 8301c089..8301c089 100644..100755
--- a/azalea-protocol/src/packets/game/clientbound_update_view_distance_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_update_view_distance_packet.rs
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index e150606c..e150606c 100644..100755
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
diff --git a/azalea-protocol/src/packets/handshake/client_intention_packet.rs b/azalea-protocol/src/packets/handshake/client_intention_packet.rs
index 6216ddc4..6216ddc4 100644..100755
--- a/azalea-protocol/src/packets/handshake/client_intention_packet.rs
+++ b/azalea-protocol/src/packets/handshake/client_intention_packet.rs
diff --git a/azalea-protocol/src/packets/handshake/mod.rs b/azalea-protocol/src/packets/handshake/mod.rs
index 88d9939b..88d9939b 100644..100755
--- a/azalea-protocol/src/packets/handshake/mod.rs
+++ b/azalea-protocol/src/packets/handshake/mod.rs
diff --git a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
index 3138106e..3138106e 100644..100755
--- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
diff --git a/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs b/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
index c54aa819..c54aa819 100644..100755
--- a/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
diff --git a/azalea-protocol/src/packets/login/clientbound_hello_packet.rs b/azalea-protocol/src/packets/login/clientbound_hello_packet.rs
index 9d0cec39..9d0cec39 100644..100755
--- a/azalea-protocol/src/packets/login/clientbound_hello_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_hello_packet.rs
diff --git a/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs b/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs
index a88c6cbf..a88c6cbf 100644..100755
--- a/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs
diff --git a/azalea-protocol/src/packets/login/mod.rs b/azalea-protocol/src/packets/login/mod.rs
index ef5f15c1..ef5f15c1 100644..100755
--- a/azalea-protocol/src/packets/login/mod.rs
+++ b/azalea-protocol/src/packets/login/mod.rs
diff --git a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
index a72480f2..a72480f2 100644..100755
--- a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
+++ b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs
diff --git a/azalea-protocol/src/packets/mod.rs b/azalea-protocol/src/packets/mod.rs
index f35451c6..f35451c6 100644..100755
--- a/azalea-protocol/src/packets/mod.rs
+++ b/azalea-protocol/src/packets/mod.rs
diff --git a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
index 884cf408..884cf408 100644..100755
--- a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
+++ b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs
diff --git a/azalea-protocol/src/packets/status/mod.rs b/azalea-protocol/src/packets/status/mod.rs
index 56aa577e..56aa577e 100644..100755
--- a/azalea-protocol/src/packets/status/mod.rs
+++ b/azalea-protocol/src/packets/status/mod.rs
diff --git a/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs b/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
index e77687ec..e77687ec 100644..100755
--- a/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
+++ b/azalea-protocol/src/packets/status/serverbound_status_request_packet.rs
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index ed36d6b6..ed36d6b6 100644..100755
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs
index 24687a6e..24687a6e 100644..100755
--- a/azalea-protocol/src/resolver.rs
+++ b/azalea-protocol/src/resolver.rs
diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs
index 821ed6e8..821ed6e8 100644..100755
--- a/azalea-protocol/src/write.rs
+++ b/azalea-protocol/src/write.rs
diff --git a/bot/Cargo.toml b/bot/Cargo.toml
index fd6ad067..fd6ad067 100644..100755
--- a/bot/Cargo.toml
+++ b/bot/Cargo.toml
diff --git a/bot/src/main.rs b/bot/src/main.rs
index 011c7d0d..011c7d0d 100644..100755
--- a/bot/src/main.rs
+++ b/bot/src/main.rs