aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-24 04:24:52 +0000
committermat <git@matdoes.dev>2025-02-24 04:24:52 +0000
commit7d6cacc79baadc53c7ac9eee735af311423634ad (patch)
tree973830546f327cc3fdbdfefcb474daa38c9f8d59 /azalea-client/src/client.rs
parentcfe6bea25a619846bbd5e23022ae572ea487563d (diff)
downloadazalea-drasl-7d6cacc79baadc53c7ac9eee735af311423634ad.tar.xz
fix send_receivepacketevent running outside of game state
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 5863690e..ae94c773 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -815,11 +815,17 @@ pub struct JoinedClientBundle {
pub mining: mining::MineBundle,
pub attack: attack::AttackBundle,
+
+ pub in_game_state: InGameState,
}
/// A marker component for local players that are currently in the
+/// `game` state.
+#[derive(Component, Clone, Debug, Default)]
+pub struct InGameState;
+/// A marker component for local players that are currently in the
/// `configuration` state.
-#[derive(Component, Clone, Debug)]
+#[derive(Component, Clone, Debug, Default)]
pub struct InConfigState;
pub struct AzaleaPlugin;