avatar: Merged gotoSleep if statement

This commit is contained in:
Samuel T 2023-11-09 02:38:31 +00:00
parent 3880f2049f
commit 736ced4aec

View file

@ -985,9 +985,7 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
return return
def gotoSleep(self): def gotoSleep(self):
if self.noSleep: if not self.sleepFlag and not self.noSleep:
return
if not self.sleepFlag:
self.b_setAnimState('Sleep', self.animMultiplier) self.b_setAnimState('Sleep', self.animMultiplier)
self.sleepFlag = 1 self.sleepFlag = 1