mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Check for the mousedown state before trying to collect an item via secondary mouse click.
This commit is contained in:
parent
9c56d25cfa
commit
434dd96cd6
@ -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