An Easter basket bearing gifts! (#191)

* Delay switch to new server until after JoinGame is sent.

Unfortunately, in some cases (especially vanilla Minecraft) some login
disconnects are sent after ServerLoginSuccess but before JoinGame.
We've been using ServerLoginSuccess but it has caused too many problems.
Now Velocity will switch to a stripped-down version of the play session
handler until JoinGame is received. This handler does very little by
itself: it simply forwards plugin messages (for Forge) and waits for the
JoinGame packet from the server.

This is an initial version: only vanilla Minecraft 1.12.2 was tested.
However this is the way Waterfall without entity rewriting does server
switches (which, in turn, is inherited from BungeeCord).

* Move to Gradle 5 and Error Prone.
This commit is contained in:
Andrew Steinborn
2019-04-24 14:36:49 -04:00
committed by GitHub
parent c8e33eef60
commit 1661cece2d
35 changed files with 475 additions and 309 deletions

View File

@@ -6,6 +6,4 @@ include(
)
findProject(':api')?.name = 'velocity-api'
findProject(':proxy')?.name = 'velocity-proxy'
findProject(':native')?.name = 'velocity-native'
enableFeaturePreview('STABLE_PUBLISHING')
findProject(':native')?.name = 'velocity-native'