From 736ced4aecf1b937429982ed7fd250fc6a20fe1d Mon Sep 17 00:00:00 2001 From: Samuel T Date: Thu, 9 Nov 2023 02:38:31 +0000 Subject: [PATCH] avatar: Merged gotoSleep if statement --- otp/avatar/LocalAvatar.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/otp/avatar/LocalAvatar.py b/otp/avatar/LocalAvatar.py index b8e04ec..8af6d4b 100644 --- a/otp/avatar/LocalAvatar.py +++ b/otp/avatar/LocalAvatar.py @@ -985,9 +985,7 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis return def gotoSleep(self): - if self.noSleep: - return - if not self.sleepFlag: + if not self.sleepFlag and not self.noSleep: self.b_setAnimState('Sleep', self.animMultiplier) self.sleepFlag = 1