Changed SendAboveActionBarMessage / SendSystemMessage to be a noop for < 1.8 clients
This commit is contained in:
parent
d37e0eb72b
commit
fd964200b2
@ -302,7 +302,12 @@ void cProtocol172::SendChatAboveActionBar(const cCompositeChat & a_Message)
|
||||
void cProtocol172::SendChatType(const AString & a_Message, eChatType type)
|
||||
{
|
||||
ASSERT(m_State == 3); // In game mode?
|
||||
|
||||
|
||||
if (type != ctChatBox) // 1.7.2 doesn't support anything else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
cPacketizer Pkt(*this, 0x02); // Chat Message packet
|
||||
Pkt.WriteString(Printf("{\"text\":\"%s\"}", EscapeString(a_Message).c_str()));
|
||||
}
|
||||
@ -315,6 +320,11 @@ void cProtocol172::SendChatType(const cCompositeChat & a_Message, eChatType type
|
||||
{
|
||||
ASSERT(m_State == 3); // In game mode?
|
||||
|
||||
if (type != ctChatBox) // 1.7.2 doesn't support anything else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
cWorld * World = m_Client->GetPlayer()->GetWorld();
|
||||
bool ShouldUseChatPrefixes = (World == nullptr) ? false : World->ShouldUseChatPrefixes();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user