mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 02:49:48 +00:00
FIX: MessagePacket instead of ChatPacket
This commit is contained in:
parent
6452eacb34
commit
d7a51b09f1
4 changed files with 22 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include "../../../world/level/Level.h"
|
||||
#include "../../../network/RakNetInstance.h"
|
||||
#include "../../../network/ServerSideNetworkHandler.h"
|
||||
#include "../../../network/packet/ChatPacket.h"
|
||||
#include "../../../network/packet/MessagePacket.h"
|
||||
#include "../../../platform/log.h"
|
||||
#include "util/StringUtils.h"
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ void ConsoleScreen::execute()
|
|||
if (minecraft->netCallback && minecraft->raknetInstance->isServer()) {
|
||||
static_cast<ServerSideNetworkHandler*>(minecraft->netCallback)->displayGameMessage(_input);
|
||||
} else if (minecraft->netCallback) {
|
||||
ChatPacket chatPkt(_input);
|
||||
MessagePacket chatPkt(_input.c_str());
|
||||
minecraft->raknetInstance->send(chatPkt);
|
||||
} else {
|
||||
minecraft->gui.addMessage("<" + minecraft->player->name + "> " + _input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue