mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
skip placement if both buttons are down
This commit is contained in:
parent
5f9f0ad72f
commit
1fef7e00cd
|
@ -12,7 +12,9 @@ pub fn block_placement_system(
|
|||
input: UniqueView<Inputs>,
|
||||
mut world: UniqueViewMut<ChunkStorage>
|
||||
) {
|
||||
//this cant process both place and break btw
|
||||
if input.action_a && input.action_b {
|
||||
return
|
||||
}
|
||||
if input.action_a || input.action_b {
|
||||
//get raycast info
|
||||
let Some(ray) = (&main_player, &raycast).iter().next().unwrap().1/**/.0 else { return };
|
||||
|
|
Loading…
Reference in a new issue