Skip to content

Commit

Permalink
fix TextPacket
Browse files Browse the repository at this point in the history
  • Loading branch information
Imrglop committed Oct 1, 2024
1 parent ff5d75a commit 0cc28c6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/client/hook/impl/PacketHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void PacketHooks::PacketHandlerDispatcherInstance_handle(void* instance, void* n
val2.val = util::StrToWStr(pkt->source);

PluginManager::Event::Value val3{ L"xuid" };
val3.val = util::StrToWStr(pkt->xboxUserId);
val3.val = L""; // No longer exists

PluginManager::Event::Value isChat{ L"isChat" };
isChat.val = (pkt->type == SDK::TextPacketType::CHAT || pkt->type == SDK::TextPacketType::RAW
Expand Down
1 change: 0 additions & 1 deletion src/sdk/common/network/packet/TextPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
void SDK::TextPacket::chat(std::string const& message) {
this->str = message;
this->source = SDK::ClientInstance::get()->getLocalPlayer()->playerName;
this->xboxUserId = SDK::ClientInstance::get()->minecraftGame->xuid;
this->type = TextPacketType::CHAT;
}
4 changes: 0 additions & 4 deletions src/sdk/common/network/packet/TextPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ namespace SDK {
TextPacketType type;
std::string source;
std::string str;
std::vector<std::string> params;
bool translationNeeded = false;
std::string xboxUserId;
std::string platformChatId;

TextPacket() = default;

Expand Down

0 comments on commit 0cc28c6

Please sign in to comment.