mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-07-31 22:02:26 +00:00
dont format before sending packet, client formats anyway
This commit is contained in:
parent
ca4dcfa63e
commit
58fd057c50
|
|
@ -679,7 +679,7 @@ void PlayerConnection::handleChat(shared_ptr<ChatPacket> packet)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wstring formatted = L"<" + player->name + L"> " + message;
|
wstring formatted = L"<" + player->name + L"> " + message;
|
||||||
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(app.FormatChatMessage(formatted, false))));
|
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(formatted)));
|
||||||
chatSpamTickCount += SharedConstants::TICKS_PER_SECOND;
|
chatSpamTickCount += SharedConstants::TICKS_PER_SECOND;
|
||||||
if (chatSpamTickCount > SharedConstants::TICKS_PER_SECOND * 10)
|
if (chatSpamTickCount > SharedConstants::TICKS_PER_SECOND * 10)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue