Posted October 25, 201212 yr 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.