diff --git a/script.lua b/script.lua index c2716a9..e1c37e8 100644 --- a/script.lua +++ b/script.lua @@ -397,7 +397,7 @@ do function purr(state) if state and not purr_sound then purr_sound=sound_settings(sounds["entity.cat.purr"]):loop(true):play() - elseif not state then + elseif not state and purr_sound then purr_sound:stop() purr_sound=nil end