Check for the mousedown state before trying to collect an item via secondary mouse click.

This commit is contained in:
Shane Handley 2020-03-11 15:39:46 +09:00
parent 9c56d25cfa
commit 434dd96cd6

View File

@ -278,7 +278,7 @@ impl PlayState for SessionState {
.unwrap_or(false)
{
self.inputs.secondary.set_state(state);
} else {
} else if state {
if let Some(select_pos) = select_pos {
client.collect_block(select_pos);
}