mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-26 00:38:44 -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 };
|
let Some(ray) = (&main_player, &raycast).iter().next().unwrap().1/**/.0 else { return };
|
||||||
//get coord and block type
|
//get coord and block type
|
||||||
let (place_position, place_block) = if action_place {
|
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)
|
(position, Block::Cobblestone)
|
||||||
} else {
|
} else {
|
||||||
(ray.block_position, Block::Air)
|
(ray.block_position, Block::Air)
|
||||||
|
|
Loading…
Reference in a new issue