Improve doDaylightCycle translation (#1711)

Previously, we wouldn't send the time if the server was sending the same time with doDaylightCycle on. However, this isn't vanilla behavior (for Bedrock nor Java) and can occasionally cause irregularities. The time is now always sent to Bedrock clients, and a daylightCycle field is added to GeyserSession to keep track of the doDaylightCycle gamerule we need to send to Bedrock. Removing the map we used to store the time may also improve memory usage since this was never cleaned up.
This commit is contained in:
Camotoy 2020-12-20 20:41:28 -05:00 committed by GitHub
parent b490dcfcbb
commit f5c0c549ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

Diff Content Not Available