diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-04 17:42:52 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-04 17:49:03 +0100 |
| commit | 94e2b2fa25e9f4ee0acca16853f58f0967796f22 (patch) | |
| tree | e58661486d5b4577c6edde445b285dc2e6516f67 /lua/pets/pet.lua | |
| parent | refactor: pet-specific values (diff) | |
refactor: PetsSleepToggle to PetsIdleToggle
The word "sleep" is changed to "idle" in the whole project for readability.
Diffstat (limited to 'lua/pets/pet.lua')
| -rw-r--r-- | lua/pets/pet.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index 99f0053..2cc6cfc 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -68,8 +68,8 @@ function M.Pet:set_hidden(hidden) }) end -function M.Pet:set_sleep(sleeping) - self.animation:set_state({ sleeping = sleeping }) +function M.Pet:set_idle(idle) + self.animation:set_state({ idle = idle }) end return M |