Steveplays28/realisticsleep

BetterSleeping Revived debuffs not triggering

Pirogiran opened this issue · 5 comments

BetterSleeping Revived mod makes it so that when you sleep you get a buff, and if you do not sleep, then debuffs are given.
The buffs don't seem to work after waking up with Realistic Sleep.

I'll take a look, thanks for the report!

I think I see the issue, I'm just setting sleeping players to 0 to wake them up, though that doesn't register the players' wakeUp events, which BetterSleeping Revived relies on.
I'll call wakeSleepingPlayers() instead, that should fix the issue.

I'll include this fix in the next release, 1.7.0.

I tried to fix this, but I have a suspicion that this is an issue on their part, due to the time not being precisely 24000 when players wake up, which they check for in their code. Not sure though.
I did replace the hacky wake up code with the proper wakeUpSleepingPlayers() function though, so that's already a step in the right direction.

I'll see what I can do, will move this issue to a later version.

I think i can open an issue on their github page.

Thank you! I added a comment to the issue with some details.
I'll have to do some debugging at some point to figure out exactly where the issue lies, not quite too sure at the moment.