mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix pets not following after making them stay and translation
This commit is contained in:
parent
13789b3de4
commit
ce8be9596b
@ -33,7 +33,7 @@ gameinput-climbdown = Climb Down
|
||||
gameinput-wallleap = Wall Leap
|
||||
gameinput-togglelantern = Toggle Lantern
|
||||
gameinput-mount = Mount
|
||||
gameinput-stay = Stay/Follow
|
||||
gameinput-stayfollow = Stay/Follow
|
||||
gameinput-chat = Chat
|
||||
gameinput-command = Command
|
||||
gameinput-escape = Escape
|
||||
|
@ -246,7 +246,7 @@ pub fn handle_set_pet_stay(
|
||||
.ecs()
|
||||
.write_storage::<comp::Agent>()
|
||||
.get_mut(pet)
|
||||
.map(|s| s.stay_pos = current_pet_position);
|
||||
.map(|s| s.stay_pos = current_pet_position.filter(|_| stay));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user