diff options
| author | mat <git@matdoes.dev> | 2025-02-24 04:24:52 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-24 04:24:52 +0000 |
| commit | 7d6cacc79baadc53c7ac9eee735af311423634ad (patch) | |
| tree | 973830546f327cc3fdbdfefcb474daa38c9f8d59 /azalea-client/src/client.rs | |
| parent | cfe6bea25a619846bbd5e23022ae572ea487563d (diff) | |
| download | azalea-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.rs | 8 |
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; |
