fix pets not following after making them stay and translation

This commit is contained in:
Maxicarlos08 2023-08-17 11:53:24 +02:00
parent 13789b3de4
commit ce8be9596b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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