Skip to content

Commit

Permalink
don't play note when tuning a noteblock if it is blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
BramOtte authored and StackDoubleFlow committed Jun 18, 2024
1 parent 066dffb commit bef7065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/core/src/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ pub fn on_use(
},
);

noteblock::play_note(world, pos, instrument, note);
if noteblock::is_noteblock_unblocked(world, pos) {
noteblock::play_note(world, pos, instrument, note);
}

ActionResult::Success
}
Expand Down

0 comments on commit bef7065

Please sign in to comment.