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

Fix "SLEEP" and "STOP_SLEEPING" animations for 1.14 and 1.15 #2029

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

mcmonkey4eva
Copy link
Member

These now both fully work as they used to, allowing an NPC (or any Player entity) to go into a sleeping animation without requiring a bed (which is a bug introduced in the one of the recent MC updates). Fully tested and working in 1.15, presumed working for 1.14 as most things work the same. Not ported to 1.13 as I'm less confident on whether things are equivalent that far back.

Did my best to match existing formats and standards used in the Citizens codebase. (The hard line length limit, the explicit bottom-of-file field placement, the } catch format, e naming, ...)

Implemented in the form of calling setPose rather than sending a packet, which I believe is more proper in this case, and more in line with expected results (ie it shouldn't unexpectedly reset itself without an entity respawn, similar to start/stop sneaking, and start/stop sitting, which are similarly semipersistent).

These now both fully work as they used to, allowing an NPC (or any Player entity) to go into a sleeping animation without requiring a bed (which is a bug introduced in the one of the recent MC updates). Fully tested and working in 1.15, presumed working for 1.14 as most things work the same. Not ported to 1.13 as I'm less confident on whether things are equivalent that far back.
This was referenced Jan 20, 2020
@fullwall fullwall merged commit 72c7332 into CitizensDev:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants