From 1fef7e00cd4c336f40b2f0a970d49342f9e3e377 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 28 Jan 2023 22:28:10 +0100 Subject: [PATCH] skip placement if both buttons are down --- src/block_placement.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/block_placement.rs b/src/block_placement.rs index 725472f..56d5f92 100644 --- a/src/block_placement.rs +++ b/src/block_placement.rs @@ -12,7 +12,9 @@ pub fn block_placement_system( input: UniqueView, mut world: UniqueViewMut ) { - //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 };