From 496de05f27d648a521b1bb6ab40264fa43b2590b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 14 Feb 2023 23:48:47 +0100 Subject: [PATCH] reduce placement dst --- kubi/src/block_placement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubi/src/block_placement.rs b/kubi/src/block_placement.rs index a0f3991..f3d7cd1 100644 --- a/kubi/src/block_placement.rs +++ b/kubi/src/block_placement.rs @@ -23,7 +23,7 @@ pub fn block_placement_system( let Some(ray) = (&main_player, &raycast).iter().next().unwrap().1/**/.0 else { return }; //get coord and block type let (place_position, place_block) = if action_place { - let position = (ray.position - ray.direction * 0.5).floor().as_ivec3(); + let position = (ray.position - ray.direction * 0.251).floor().as_ivec3(); (position, Block::Cobblestone) } else { (ray.block_position, Block::Air)