aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/received_registries.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-08-24 22:59:40 -0500
committerGitHub <noreply@github.com>2023-08-24 22:59:40 -0500
commit11d14c74c53c07231c8ca33b622380df99bf9a59 (patch)
treeea1d0c61a6d5f8af550a708ff3b71fbbaed5d122 /azalea-client/src/received_registries.rs
parent57e5a0f0b96a38674bd18ac38d2d07e4f4ca2fd6 (diff)
downloadazalea-drasl-11d14c74c53c07231c8ca33b622380df99bf9a59.tar.xz
Support properly switching instances (#106)
* start implementing switching dimensions * fix removeentity in shared worlds * also store entity ids per local player * uncomment a trace in pathfinder * cleanup --------- Co-authored-by: mat <git@matdoes.dev>
Diffstat (limited to 'azalea-client/src/received_registries.rs')
-rw-r--r--azalea-client/src/received_registries.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/azalea-client/src/received_registries.rs b/azalea-client/src/received_registries.rs
new file mode 100644
index 00000000..845527ae
--- /dev/null
+++ b/azalea-client/src/received_registries.rs
@@ -0,0 +1,7 @@
+use azalea_protocol::packets::game::clientbound_login_packet::registry::RegistryRoot;
+use bevy_ecs::component::Component;
+use derive_more::Deref;
+
+/// The registries that the server sent us on login.
+#[derive(Clone, Debug, Component, Deref)]
+pub struct ReceivedRegistries(pub RegistryRoot);