Jump to content

Recommended Posts

Posted

I noticed a few things about the hooks for sleeping.

1) It asks mod hooks if you can sleep without giving the information of the results of the vanilla sleeping system. This would be a rather simple change, having a EnumStatus variable that is set instead of the return statements and moving the event posting till after the initial set of checks. This would be helpful, as I would like to be able to sometimes override the fact that you can only get into a bed at night, but not do anything about monsters around or anything else, and would prefer to avoid potential issues with trying to just copy the code, and having to worry about editing other vanilla behavior.

2) The section of code for deciding if the players actually start their sleep cycle has no forge hooks. This is problematic for me, because I want to sometimes add restrictions to the sleep cycle, so that even if all players on the server are sleeping it won't go through the fade out. It is also difficult as far as I can tell to actually detect when the sleep cycle actually occurs without duplicating the vanilla player tracking, which I would prefer to do as that would make compatibility a bit more of an issue.

I hope that hooks to permit the behaviors I described are implemented, and thank you for all your wonderful work,

Sound Logic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.