diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-17 12:27:24 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-17 12:27:24 +0100 |
| commit | 67aef69c75a4e797b4fb4848722e6e749d3fbe89 (patch) | |
| tree | e35111212ced94284091e8ab7c791628421b5858 /lua/pets.lua | |
| parent | Adding statefulness when toggling settings (diff) | |
fix(toggles): fix pause after hide
Fixed the pets not pausing after being hidden and unhidden.
Also fixed an hologram error found in the process
Diffstat (limited to 'lua/pets.lua')
| -rw-r--r-- | lua/pets.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/pets.lua b/lua/pets.lua index 282a147..cf76f0f 100644 --- a/lua/pets.lua +++ b/lua/pets.lua @@ -108,6 +108,8 @@ function M.toggle_hide() hidden = not hidden if hidden then -- Hiding relies on the pets being paused as well paused = true + else + paused = false end for _, pet in pairs(M.pets) do pet:set_hidden(hidden) |