aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-18 08:24:34 +0700
committermat <git@matdoes.dev>2025-06-18 08:24:34 +0700
commit844697c04c030af19e63fd6af28aeb42519da7e1 (patch)
tree1e15fd81cd9100143efa3afae48affd332815377 /azalea-protocol/src
parentffbe7a3e426e66c21c7156780728f96f8277c68a (diff)
downloadazalea-drasl-844697c04c030af19e63fd6af28aeb42519da7e1.tar.xz
1.21.6 fixes
Diffstat (limited to 'azalea-protocol/src')
-rw-r--r--azalea-protocol/src/packets/config/s_custom_click_action.rs3
-rw-r--r--azalea-protocol/src/packets/game/c_waypoint.rs8
-rw-r--r--azalea-protocol/src/packets/game/s_custom_click_action.rs3
3 files changed, 4 insertions, 10 deletions
diff --git a/azalea-protocol/src/packets/config/s_custom_click_action.rs b/azalea-protocol/src/packets/config/s_custom_click_action.rs
index 4c168884..eee03303 100644
--- a/azalea-protocol/src/packets/config/s_custom_click_action.rs
+++ b/azalea-protocol/src/packets/config/s_custom_click_action.rs
@@ -1,9 +1,10 @@
use azalea_buf::AzBuf;
use azalea_core::resource_location::ResourceLocation;
use azalea_protocol_macros::ServerboundConfigPacket;
+use simdnbt::owned::Nbt;
#[derive(Clone, Debug, AzBuf, ServerboundConfigPacket)]
pub struct ServerboundCustomClickAction {
pub id: ResourceLocation,
- pub payload: Option<String>,
+ pub payload: Nbt,
}
diff --git a/azalea-protocol/src/packets/game/c_waypoint.rs b/azalea-protocol/src/packets/game/c_waypoint.rs
index 0724d019..4975815e 100644
--- a/azalea-protocol/src/packets/game/c_waypoint.rs
+++ b/azalea-protocol/src/packets/game/c_waypoint.rs
@@ -67,14 +67,6 @@ struct CompactRgbColor {
}
#[derive(AzBuf, Clone, Debug)]
-pub struct WaypointIconFade {
- pub near_dist: i32,
- pub far_dist: i32,
- pub near_alpha: u8,
- pub far_alpha: u8,
-}
-
-#[derive(AzBuf, Clone, Debug)]
pub enum WaypointData {
Empty,
Vec3i(Vec3i),
diff --git a/azalea-protocol/src/packets/game/s_custom_click_action.rs b/azalea-protocol/src/packets/game/s_custom_click_action.rs
index 7215aaf6..4822fb65 100644
--- a/azalea-protocol/src/packets/game/s_custom_click_action.rs
+++ b/azalea-protocol/src/packets/game/s_custom_click_action.rs
@@ -1,9 +1,10 @@
use azalea_buf::AzBuf;
use azalea_core::resource_location::ResourceLocation;
use azalea_protocol_macros::ServerboundGamePacket;
+use simdnbt::owned::Nbt;
#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
pub struct ServerboundCustomClickAction {
pub id: ResourceLocation,
- pub payload: Option<String>,
+ pub payload: Nbt,
}