mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
ab56829385
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user