mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Change way commands are displayed in chat window
This commit is contained in:
@@ -270,6 +270,12 @@ public:
|
|||||||
|
|
||||||
void addChatMessage(const std::wstring &message)
|
void addChatMessage(const std::wstring &message)
|
||||||
{
|
{
|
||||||
|
if (message[0] == L'/') {
|
||||||
|
m_chat_queue.push_back(
|
||||||
|
(std::wstring)L"issued command: "+message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
|
//JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
|
||||||
LocalPlayer *player = m_env.getLocalPlayer();
|
LocalPlayer *player = m_env.getLocalPlayer();
|
||||||
assert(player != NULL);
|
assert(player != NULL);
|
||||||
|
Reference in New Issue
Block a user