Skip to content

Commit

Permalink
rename derive to macros
Browse files Browse the repository at this point in the history
  • Loading branch information
theaddonn committed Sep 1, 2024
1 parent abb3f53 commit 8b39cb4
Show file tree
Hide file tree
Showing 109 changed files with 124 additions and 118 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bedrockrs_nbt = { git = "https://github.com/bedrock-crustaceans/bedrockrs-nbt" }

bedrockrs_proto = { path = "crates/proto", optional = true }
bedrockrs_proto_core = { path = "crates/proto_core", optional = true }
bedrockrs_proto_derive = { path = "crates/proto_derive", optional = true }
bedrockrs_proto_macros = { path = "crates/proto_macros", optional = true }

bedrockrs_addon = { path = "crates/addon", optional = true }

Expand All @@ -27,5 +27,5 @@ bedrockrs_paletted_storage = { path = "crates/paletted_storage", optional = true
full = ["addons", "proto", "world"]

addons = ["dep:bedrockrs_addon"]
proto = ["dep:bedrockrs_proto", "dep:bedrockrs_proto_core", "dep:bedrockrs_proto_derive"]
proto = ["dep:bedrockrs_proto", "dep:bedrockrs_proto_core", "dep:bedrockrs_proto_macros"]
world = ["dep:bedrockrs_world", "dep:bedrockrs_paletted_storage"]
2 changes: 1 addition & 1 deletion crates/proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bedrockrs_core = { path = "../core" }
bedrockrs_shared = { path = "../shared" }
bedrockrs_nbt = { git = "https://github.com/bedrock-crustaceans/bedrockrs-nbt" }
bedrockrs_proto_core = { path = "../proto_core" }
bedrockrs_proto_derive = { path = "../proto_derive" }
bedrockrs_proto_macros = { path = "../proto_macros" }
bedrockrs_addon = { path = "../addon" }

thiserror = "1.0"
Expand Down
6 changes: 5 additions & 1 deletion crates/proto/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ impl Connection {
for game_packet in gamepackets {
// Write gamepacket
game_packet
.pk_serialize(&mut pk_stream, SubClientID::PrimaryClient, SubClientID::PrimaryClient)
.pk_serialize(
&mut pk_stream,
SubClientID::PrimaryClient,
SubClientID::PrimaryClient,
)
.map_err(ConnectionError::ProtoCodecError)?
}

Expand Down
14 changes: 8 additions & 6 deletions crates/proto/src/gamepackets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ use crate::packets::show_profile::ShowProfilePacket;
use crate::packets::start_game::StartGamePacket;
use crate::packets::text_message::TextMessagePacket;
use crate::packets::toast_request::ToastRequestPacket;
use crate::sub_client::SubClientID;
use bedrockrs_core::int::VAR;
use bedrockrs_proto_core::{error::ProtoCodecError, GamePacket, ProtoCodec};
use bedrockrs_proto_derive::gamepackets;
use crate::sub_client::SubClientID;
use bedrockrs_proto_macros::gamepackets;

gamepackets! {
Login: LoginPacket,
Expand Down Expand Up @@ -282,10 +282,12 @@ fn read_gamepacket_header(

// Get the next 2 bits as the sub client sender id
// Can never be more than an 8-bit integer due to being 2 bits big
let subclient_sender_id = SubClientID::proto_from((game_packet_header & 0b0000_1100_0000_0000 >> 10) as u8)?;
let subclient_sender_id =
SubClientID::proto_from((game_packet_header & 0b0000_1100_0000_0000 >> 10) as u8)?;
// Get the next 2 bits as the sub client target id
// Can never be more than an 8-bit integer due to being 2 bits big
let subclient_target_id = SubClientID::proto_from((game_packet_header & 0b0011_0000_0000_0000 >> 12) as u8)?;
let subclient_target_id =
SubClientID::proto_from((game_packet_header & 0b0011_0000_0000_0000 >> 12) as u8)?;

Ok((
length,
Expand Down Expand Up @@ -316,10 +318,10 @@ fn write_gamepacket_header(

// Set the next 2 bits as the sub client sender id
// Can never be more than an 8-bit integer due to being 2 bits big
game_packet_header |= subclient_sender_id as u16 >> 10 & 0b0000_1100_0000_0000;
game_packet_header |= subclient_sender_id.proto_to() as u16 >> 10 & 0b0000_1100_0000_0000;
// Set the next 2 bits as the sub client target id
// Can never be more than an 8-bit integer due to being 2 bits big
game_packet_header |= subclient_target_id as u16 >> 12 & 0b0011_0000_0000_0000;
game_packet_header |= subclient_target_id.proto_to() as u16 >> 12 & 0b0011_0000_0000_0000;

// Write the gamepacket header
VAR::<u16>::new(game_packet_header).proto_serialize(stream)?;
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/add_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use bedrockrs_core::{
int::{LE, VAR},
Vec2, Vec3,
};
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::{actor_runtime_id::ActorRuntimeID, actor_unique_id::ActorUniqueID};

use crate::types::{
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/add_painting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use bedrockrs_core::{
int::{LE, VAR},
Vec3,
};
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::{actor_runtime_id::ActorRuntimeID, actor_unique_id::ActorUniqueID};

#[gamepacket(id = 22)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/add_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::types::network_item_stack_descriptor::NetworkItemStackDescriptor;
use crate::types::property_sync_data::PropertySyncData;
use bedrockrs_core::int::{LE, VAR};
use bedrockrs_core::Vec3;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use bedrockrs_shared::world::gamemode::Gamemode;
use uuid::Uuid;
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/animate_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::types::animate_action::AnimateAction;
use bedrockrs_core::int::{LE, VAR};
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use std::io::Cursor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/boss_event.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::types::event_type::BossEventType;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_unique_id::ActorUniqueID;

#[gamepacket(id = 74)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/camera.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_unique_id::ActorUniqueID;

#[gamepacket(id = 73)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/change_dimension.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_core::int::LE;
use bedrockrs_core::Vec3;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::world::dimension::Dimension;

#[gamepacket(id = 61)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/chunk_radius_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 69)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/chunk_radius_updated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::{LE, VAR};
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 70)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/client_cache_status.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 129)]
#[derive(ProtoCodec, Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/command_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::command_origin_data::CommandOriginData;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/container_close.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::container_type::ContainerType;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/container_open.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_unique_id::ActorUniqueID;

use crate::types::{
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/correct_player_move_prediction.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::{int::LE, Vec3};
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 161)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/debug_info.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_unique_id::ActorUniqueID;

#[gamepacket(id = 155)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/emote_list.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use uuid::Uuid;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/handshake_server_to_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::Cursor;

use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;
use serde_json::Value;

#[gamepacket(id = 3)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bedrockrs_core::int::LE;
use bedrockrs_core::Vec3;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use std::io::Cursor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/inventory_content.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::network_item_stack_descriptor::NetworkItemStackDescriptor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/level_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::types::chunk_pos::ChunkPos;
use bedrockrs_core::int::{LE, VAR};
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;

#[gamepacket(id = 58)]
#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/login.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::BE;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::connection_request::ConnectionRequest;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/mob_equipment.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::network_item_stack_descriptor::NetworkItemStackDescriptor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/modal_form_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 100)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/modal_form_response.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::types::modal_form_cancel_reason::ModalFormCancelReason;
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 101)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/network_settings.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::LE;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 143)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/network_settings_request.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::BE;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 193)]
#[derive(ProtoCodec, Debug, Copy, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/packet_violation_warning.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 156)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/play_status.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::play_status::PlayStatusType;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_action.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::types::{network_block_pos::NetworkBlockPos, player_action_type::PlayerActionType};
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;

#[gamepacket(id = 36)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_auth_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bedrockrs_core::int::{LE, VAR};
use bedrockrs_core::{Vec2, Vec3};
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;
use bedrockrs_shared::actor_unique_id::ActorUniqueID;
use std::io::Cursor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_disconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io::Cursor;
use crate::types::disconnect_reason::DisconnectReason;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;

#[gamepacket(id = 5)]
#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_hotbar.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::types::container_id::ContainerID;
use bedrockrs_core::int::VAR;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 48)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bedrockrs_core::Vec2;
use bedrockrs_core::Vec3;
use bedrockrs_proto_core::error::ProtoCodecError;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::gamepacket;
use bedrockrs_proto_macros::gamepacket;
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;
use std::io::Cursor;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/player_transfer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::LE;
use bedrockrs_proto_derive::{gamepacket, gamepackets, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, gamepackets, ProtoCodec};

#[gamepacket(id = 85)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/remove_actor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_unique_id::ActorUniqueID;

#[gamepacket(id = 14)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/resource_packs_info.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bedrockrs_core::int::LE;
use bedrockrs_core::int::VAR;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::pack_info_behavior::BehaviorPackInfoType;
use crate::types::pack_info_resource::ResourcePackInfoType;
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/resource_packs_response.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_core::int::LE;
use bedrockrs_proto_core::ProtoCodec;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::resource_packs_response_status::ResourcePacksResponseStatus;

Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/resource_packs_stack.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

use crate::types::base_game_version::BaseGameVersion;
use crate::types::experiments::Experiments;
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/respawn.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::types::respawn_state::RespawnState;
use bedrockrs_core::int::LE;
use bedrockrs_core::Vec3;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};
use bedrockrs_shared::actor_runtime_id::ActorRuntimeID;

#[gamepacket(id = 45)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::{int::LE, Vec3};
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 18)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/server_settings_request.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 102)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/packets/server_settings_response.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bedrockrs_core::int::VAR;
use bedrockrs_proto_derive::{gamepacket, ProtoCodec};
use bedrockrs_proto_macros::{gamepacket, ProtoCodec};

#[gamepacket(id = 103)]
#[derive(ProtoCodec, Debug, Clone)]
Expand Down
Loading

0 comments on commit 8b39cb4

Please sign in to comment.