From 9efcd5b82f80445aa6bdb046564b4bc0bd9f94ff Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 29 Jul 2013 21:42:05 +0200 Subject: Added the "Edit Sign" packet sent to the client placing a sign. Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet --- source/Blocks/BlockSign.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/Blocks') diff --git a/source/Blocks/BlockSign.h b/source/Blocks/BlockSign.h index a89ae0c49..09fa721b6 100644 --- a/source/Blocks/BlockSign.h +++ b/source/Blocks/BlockSign.h @@ -66,6 +66,17 @@ public: } return 0x2; } + + + virtual void OnPlacedByPlayer( + cWorld * a_World, cPlayer * a_Player, + int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, + int a_CursorX, int a_CursorY, int a_CursorZ, + BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta + ) override + { + a_Player->GetClientHandle()->SendEditSign(a_BlockX, a_BlockY, a_BlockZ); + } } ; -- cgit v1.2.3