Commit Graph

13 Commits

Author SHA1 Message Date
Luke 7195d20fae
Implement helper methods for sending packets (#487)
* Implement helper methods for sending packets, fixes an NPE when chatting before connecting to the remote server

* Change method names

* Add a space between doc comment lines

* Add debug messages
2020-05-05 10:51:43 -05:00
DoctorMacc 821f164b23 Fix requested changes 2020-04-13 18:01:30 -04:00
DoctorMacc 35a16996b5 Small change 2020-04-13 10:58:10 -04:00
DoctorMacc 1714445df9 Remove unused imports 2020-04-13 10:55:52 -04:00
DoctorMacc d08c13a7e3 Remove old lines of code 2020-04-13 10:47:30 -04:00
DoctorMacc 5c62b47175 Simplify logic 2020-04-13 10:46:13 -04:00
DoctorMacc daa1888c09 Add some code in case of a rogue plugin 2020-04-12 21:33:51 -04:00
DoctorMacc 746cd29a6d Add doDaylightCycle gamerule support 2020-04-12 21:13:51 -04:00
Ender bbf6683bd8 Make all translators annotation based 2020-03-23 23:24:17 -05:00
RednedEpic 16c9317a36 Fix flickering sky if time is too high (Closes #200)
This was caused because the max int size is 2,147,483,647, which is what Minecraft: Bedrock Edition uses in the time packet. In Minecraft: Java Edition, a long is used which has a max length of 9,223,372,036,854,775,807, thus causing the sky to bug out.

This commit uses the modulus operator with the max time value per-day of 24,000 to retrieve the remainder.
2020-03-15 13:20:55 -05:00
RednedEpic dc594ee22c Update license headers
Certain headers for classes that are to be removed (e.g. plugin api) were not updated to prevent merge conflicts.
2020-01-08 21:05:42 -06:00
RednedEpic bbacbfdf66 Fix invalid package declarations 2019-07-25 23:26:42 -05:00
Ryan Hecht 2a07e05877 Refactored Java packets to follow package structure of MCProtocolLib, removed redundant 'JavaTimeTranslator' 2019-07-24 21:44:15 -07:00
Renamed from connector/src/main/java/org/geysermc/connector/network/translators/java/JavaUpdateTimeTranslator.java (Browse further)