Merge branch 'shandley/collect-block-mousedown-only' into 'master'

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

See merge request veloren/veloren!846
This commit is contained in:
Acrimon 2020-03-11 08:07:34 +00:00
commit ab56829385

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);
}