mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Resolve discussion
This commit is contained in:
parent
356f5cb47a
commit
e267ac7ed4
@ -105,7 +105,11 @@ impl PlayState for SessionState {
|
||||
// Check the existence of CanBuild component. If it's here, use LMB to
|
||||
// place blocks, if not, use it to attack
|
||||
if state {
|
||||
self.controller.respawn = state;
|
||||
// Check if the player is dead or not
|
||||
if current_client_state != ClientState::Character {
|
||||
self.controller.respawn = state;
|
||||
}
|
||||
|
||||
let mut client = self.client.borrow_mut();
|
||||
if client
|
||||
.state()
|
||||
|
Loading…
Reference in New Issue
Block a user