From 3f189db4ae9276bd59c4141b86a608b2be70cca4 Mon Sep 17 00:00:00 2001 From: Qiuzhizhe <42761326+quizhizhe@users.noreply.github.com> Date: Mon, 20 Mar 2023 07:00:16 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`TransferPacket`=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LiteLoader/include/llapi/Offset.h | 6 +++--- LiteLoader/include/llapi/mc/TransferPacket.hpp | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/LiteLoader/include/llapi/Offset.h b/LiteLoader/include/llapi/Offset.h index f185e10..d59f0b5 100644 --- a/LiteLoader/include/llapi/Offset.h +++ b/LiteLoader/include/llapi/Offset.h @@ -138,9 +138,9 @@ namespace ll{ constexpr uint64_t PLAYERAPI_getClientSubId = 0xDC0; // Null constexpr uint64_t PLAYERAPI_crashClient = 0X38; - // Null - constexpr uint64_t PLAYERAPI_sendTransferPacket_port = 0X24; - // Null + // TransferPacket::mServerPort + constexpr uint64_t PLAYERAPI_sendTransferPacket_port = 0X48; + // TransferPacket::mServerAddress constexpr uint64_t PLAYERAPI_sendTransferPacket_address = 0X28; // SetScorePacket::mType constexpr uint64_t PLAYERAPI_sendSetScorePacket_type = 0X28; diff --git a/LiteLoader/include/llapi/mc/TransferPacket.hpp b/LiteLoader/include/llapi/mc/TransferPacket.hpp index b484ea6..3f68911 100644 --- a/LiteLoader/include/llapi/mc/TransferPacket.hpp +++ b/LiteLoader/include/llapi/mc/TransferPacket.hpp @@ -12,7 +12,9 @@ class TransferPacket : public Packet { #define AFTER_EXTRA // Add Member There - char filler[40]; +public: + std::string mServerAddress; + int mServerPort; #undef AFTER_EXTRA #ifndef DISABLE_CONSTRUCTOR_PREVENTION_TRANSFERPACKET public: