mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 11:58:21 -06:00
reduce placement dst
This commit is contained in:
parent
51ed3762cc
commit
0de70ed1b7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue