toon: Sleep deprivation (seriously, why did I do it like that)

This commit is contained in:
Samuel T 2023-11-09 00:08:47 +00:00
parent e16f614b39
commit df3a690e51

View file

@ -2591,10 +2591,7 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
return self.transitioning return self.transitioning
def toggleSleep(self): def toggleSleep(self):
if base.localAvatar.noSleep: base.localAvatar.noSleep = not base.localAvatar.noSleep
base.localAvatar.noSleep = 0
else:
base.localAvatar.noSleep = 1
def magicWordTeleport(self, zone): def magicWordTeleport(self, zone):
hood = ZoneUtil.getHoodId(zone) hood = ZoneUtil.getHoodId(zone)