Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
0x01: { //PacketPlayOutLogin
serializer.writeByte(0x01);
int playerEnityId = packetdata.readInt();
player = new WatchedPlayer(playerEnityId);
storage.addWatchedEntity(player);
serializer.writeInt(playerEnityId);
int gamemode = packetdata.readByte();
int dimension = packetdata.readByte();
int difficulty = packetdata.readByte();
int maxplayers = packetdata.readByte();
serializer.writeString(packetdata.readString(32767));
serializer.writeByte(gamemode);
serializer.writeByte(dimension);
serializer.writeByte(difficulty);
serializer.writeByte(0);
serializer.writeByte(Math.min(Math.abs(maxplayers), 60));
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.