diff options
author | tycho <work.tycho@gmail.com> | 2015-09-27 16:18:31 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-12-18 19:14:34 +0100 |
commit | 50186579737c12f11bea815d5fb8db732c6ff3c6 (patch) | |
tree | 7ca89ced1321b2bcff243d16818f93db02ca3b25 /src/Protocol/Protocol17x.cpp | |
parent | broken 2 (diff) | |
download | cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.gz cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.bz2 cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.lz cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.xz cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.zst cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.zip |
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index 873efa075..4e3b985e1 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -88,14 +88,12 @@ extern bool g_ShouldLogCommIn, g_ShouldLogCommOut; //////////////////////////////////////////////////////////////////////////////// // cProtocol172: -/* -cProtocol172::cProtocol172(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State) : - super(a_Client->GetIPString()), - m_ServerAddress(a_ServerAddress), - m_ServerPort(a_ServerPort), - m_State(a_State), + +cProtocol172::cProtocol172(const AString a_LogID) : + super(a_LogID), m_LastSentDimension(dimNotSet) { +/* // BungeeCord handling: // If BC is setup with ip_forward == true, it sends additional data in the login packet's ServerAddress field: // hostname\00ip-address\00uuid\00profile-properties-as-json @@ -108,8 +106,9 @@ cProtocol172::cProtocol172(cClientHandle * a_Client, const AString & a_ServerAdd a_Client->SetUUID(cMojangAPI::MakeUUIDShort(Params[2])); a_Client->SetProperties(Params[3]); } -} */ +} + @@ -3123,8 +3122,8 @@ void cProtocol172::WriteEntityProperties(cPacketizer & a_Pkt, const cEntity & a_ //////////////////////////////////////////////////////////////////////////////// // cProtocol176: -cProtocol176::cProtocol176(cClientHandle * a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State) : - super(a_Client, a_ServerAddress, a_ServerPort, a_State) +cProtocol176::cProtocol176(const AString a_LogID) : + super(a_LogID) { } |