mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-23 11:23:46 +00:00
refactor: use std::endian directly, enum class EDefaultSkins, rename reserved-prefix helpers
This commit is contained in:
@@ -362,7 +362,7 @@ bool Connection::readTick() {
|
||||
void handleException(Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
close("disconnect.genericReason", "Internal exception: " + e.toString());
|
||||
close("disconnect.genericReason", "Internal exception: " + e.toWString());
|
||||
}*/
|
||||
|
||||
void Connection::close(DisconnectPacket::eDisconnectReason reason) {
|
||||
|
||||
@@ -519,13 +519,13 @@ std::shared_ptr<Packet> Packet::readPacket(
|
||||
__debugbreak();
|
||||
assert(false);
|
||||
// throw new IOException(wstring(L"Bad packet id ") +
|
||||
// _toString<int>(id));
|
||||
// toWString<int>(id));
|
||||
}
|
||||
|
||||
packet = getPacket(id);
|
||||
if (packet == nullptr)
|
||||
assert(false); // throw new IOException(wstring(L"Bad packet id ") +
|
||||
// _toString<int>(id));
|
||||
// toWString<int>(id));
|
||||
|
||||
// app.DebugPrintf("%s reading packet %d\n", isServer ? "Server" : "Client",
|
||||
// packet->getId());
|
||||
|
||||
Reference in New Issue
Block a user