Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GT5 Sleeping buff is not applied when Morpheus partial sleeping skips the night #16893

Closed
3 tasks done
leumasme opened this issue Aug 2, 2024 · 1 comment · Fixed by GTNewHorizons/Hodgepodge#412
Closed
3 tasks done
Labels
Bug: Minor Status: Triage Issue awaiting triage. Remove once this issue is processed

Comments

@leumasme
Copy link
Contributor

leumasme commented Aug 2, 2024

Your GTNH Discord Username

leumasme

Your Pack Version

2.6.1

Your Server

private server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Expectation

When sleeping to skip the night, the GT5-Unofficial sleeping buff should kick in.
If the night was skipped but not all players slept, the buffs should apply to the players that did sleep.

The Reality

When not all players sleep and Morpheus kicks in to allow partial sleeping skipping the night
(Username is now sleeping. 1/2 (50%)),
the sleeping buffs are not applied to anyone.

Your Proposal

Fix Compatability between GT5 and Morpheus to apply sleeping buffs to the players that slept when Morpheus partial sleeping skips the night.

For reference:

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
  • I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
@leumasme leumasme added Status: Triage Issue awaiting triage. Remove once this issue is processed Bug: Minor labels Aug 2, 2024
@leumasme
Copy link
Contributor Author

More exactly, this seems to be caused by Morpheus checking the player sleep state and starting a new Day at the end of a tick, but not actually waking up the players.
When the next tick starts, the world time is first increased and then players are automatically woken up because it's already day - but at this point, its not the first tick of the day anymore.

This could be fixed by calling WorldServer.wakeAllPlayers at the end of SleepChecker.advanceToMorning.
This would also replace the world.provider.resetRainAndThunder(); call since WorldServer.wakeAllPlayers already does that.

It seems like there is no GTNH fork of Morpheus and the original project has no license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Minor Status: Triage Issue awaiting triage. Remove once this issue is processed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant