summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol16x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-29 21:42:05 +0200
committermadmaxoft <github@xoft.cz>2013-07-29 21:42:05 +0200
commit9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff (patch)
tree1a29f49eecc37e72c56f87d5d23b2af7339d84a9 /source/Protocol/Protocol16x.cpp
parentUpdated the nightbuild script for Git (diff)
downloadcuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar.gz
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar.bz2
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar.lz
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar.xz
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.tar.zst
cuberite-9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff.zip
Diffstat (limited to 'source/Protocol/Protocol16x.cpp')
-rw-r--r--source/Protocol/Protocol16x.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/Protocol/Protocol16x.cpp b/source/Protocol/Protocol16x.cpp
index 820e71cd9..4e8fd1887 100644
--- a/source/Protocol/Protocol16x.cpp
+++ b/source/Protocol/Protocol16x.cpp
@@ -43,6 +43,7 @@ enum
PACKET_ATTACH_ENTITY = 0x27,
PACKET_ENTITY_PROPERTIES = 0x2c,
PACKET_WINDOW_OPEN = 0x64,
+ PACKET_TILE_EDITOR_OPEN = 0x85,
PACKET_PLAYER_ABILITIES = 0xca,
} ;
@@ -84,6 +85,22 @@ void cProtocol161::SendChat(const AString & a_Message)
+
+void cProtocol161::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte(PACKET_TILE_EDITOR_OPEN);
+ WriteByte(0);
+ WriteInt(a_BlockX);
+ WriteInt(a_BlockY);
+ WriteInt(a_BlockZ);
+ Flush();
+}
+
+
+
+
+
void cProtocol161::SendGameMode(eGameMode a_GameMode)
{
super::SendGameMode(a_GameMode);