Fix initialization of quick mode with login phase

Replay is always already past the login phase when quick mode is
enabled, hence the LoginSuccess packet must not be sent.
This commit is contained in:
Jonas Herzig
2019-03-27 10:58:37 +01:00
parent 2c0ae426de
commit b8c892fcd4

View File

@@ -211,7 +211,6 @@ public class QuickReplaySender extends ChannelHandlerAdapter implements ReplaySe
public void restart() {
activeThings.clear();
currentTimeStamp = 0;
ctx.fireChannelRead(toMC(new LoginSuccessPacket(new GameProfile(UUID.nameUUIDFromBytes(new byte[0]), "Player")), EnumConnectionState.LOGIN));
ctx.fireChannelRead(toMC(new ServerRespawnPacket(0, Difficulty.NORMAL, GameMode.SPECTATOR, WorldType.DEFAULT)));
ctx.fireChannelRead(toMC(new ServerPlayerPositionRotationPacket(0, 0, 0, 0, 0, 0)));
}