mirror of
https://github.com/itsRevela/MinecraftConsoles.git
synced 2026-07-18 15:40:37 +00:00
LoginPacket.cpp: - read(): Extracts hardcore from bit 3 of gameType (gameType & 0x8), then masks it off (gameType & ~0x8) - write(): Encodes hardcore into gameType via gameType | (m_isHardcore ? 0x8 : 0) - Removed the separate readBoolean()/writeBoolean() for m_isHardcore - Removed trailing + sizeof(bool) from getEstimatedSize() RespawnPacket.cpp: - read(): Extracts hardcore from bit 3 of the playerGameType byte, then masks it off before passing to GameType::byId() - write(): Encodes hardcore into the playerGameType byte via getId() | (m_isHardcore ? 0x8 : 0) - Removed the separate readBoolean()/writeBoolean() for m_isHardcore - Reverted getEstimatedSize() from 14+length to 13+length
2.6 KiB
2.6 KiB