Skip to content

Commit

Permalink
correct ActorMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
theaddonn committed Nov 1, 2024
1 parent 72d4141 commit 9b238d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions crates/proto/src/version/v662/packets/add_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bedrockrs_core::{Vec2, Vec3};
use bedrockrs_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use bedrockrs_shared::world::gamemode::Gamemode;
use crate::version::v662::types::ItemStackDescriptor;
use crate::version::v662::types::{ActorMetaData, ItemStackDescriptor};

#[gamepacket(id = 9)]
#[derive(ProtoCodec, Debug, Clone)]
Expand All @@ -22,6 +22,5 @@ pub struct AddPlayerPacket {
pub head_yaw: f32,
pub carried_item: ItemStackDescriptor,
pub gamemode: Gamemode,
pub EntityMetadata: EntityMetadata,

pub actor_meta_data: ActorMetaData,
}
3 changes: 0 additions & 3 deletions crates/proto/src/version/v662/types/actor.rs

This file was deleted.

6 changes: 6 additions & 0 deletions crates/proto/src/version/v662/types/actor_metadata.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec, Debug, Clone)]
pub struct ActorMetaData {

}
3 changes: 1 addition & 2 deletions crates/proto/src/version/v662/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
mod actor;

macro_rules! export {
($name:ident) => {
mod $name;
Expand All @@ -10,3 +8,4 @@ macro_rules! export {
export!(connection_request);
export!(experiment);
export!(item);
export!(actor_metadata);

0 comments on commit 9b238d9

Please sign in to comment.