Fix example code.

This commit is contained in:
Steveice10 2019-12-17 16:45:32 -08:00
parent 10561e879b
commit 6663b2e66f

View file

@ -68,7 +68,7 @@ public class MinecraftProtocolTest {
server.setGlobalFlag(MinecraftConstants.SERVER_LOGIN_HANDLER_KEY, new ServerLoginHandler() { server.setGlobalFlag(MinecraftConstants.SERVER_LOGIN_HANDLER_KEY, new ServerLoginHandler() {
@Override @Override
public void loggedIn(Session session) { public void loggedIn(Session session) {
session.send(new ServerJoinGamePacket(0, false, GameMode.SURVIVAL, 0, 100, WorldType.DEFAULT, 16, false)); session.send(new ServerJoinGamePacket(0, false, GameMode.SURVIVAL, 0, 0, 100, WorldType.DEFAULT, 16, false, true));
} }
}); });