aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
authorShayne Hartford <shaybox@shaybox.com>2024-11-30 19:05:35 -0500
committerGitHub <noreply@github.com>2024-11-30 18:05:35 -0600
commitea5a1c1ec128cc1a33593c9d91ef758c3fb73e16 (patch)
treea118ec0a95af962da70d5df7ad1028813d2883a1 /azalea-core/src
parent944fe5c6f888ebdcb7354cc5e6ab6a7414daec99 (diff)
downloadazalea-drasl-ea5a1c1ec128cc1a33593c9d91ef758c3fb73e16.tar.xz
Add missing world border boolean to use item on packet in 1.21.2 (#192)
Diffstat (limited to 'azalea-core/src')
-rwxr-xr-xazalea-core/src/aabb.rs1
-rwxr-xr-xazalea-core/src/block_hit_result.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/azalea-core/src/aabb.rs b/azalea-core/src/aabb.rs
index 61b015cb..70829aa2 100755
--- a/azalea-core/src/aabb.rs
+++ b/azalea-core/src/aabb.rs
@@ -260,6 +260,7 @@ impl AABB {
block_pos: *pos,
inside: false,
miss: false,
+ world_border: false,
})
}
diff --git a/azalea-core/src/block_hit_result.rs b/azalea-core/src/block_hit_result.rs
index 20cc723b..4d930453 100755
--- a/azalea-core/src/block_hit_result.rs
+++ b/azalea-core/src/block_hit_result.rs
@@ -10,6 +10,7 @@ pub struct BlockHitResult {
pub block_pos: BlockPos,
pub miss: bool,
pub inside: bool,
+ pub world_border: bool,
}
impl BlockHitResult {
@@ -20,6 +21,7 @@ impl BlockHitResult {
block_pos,
miss: true,
inside: false,
+ world_border: false,
}
}