1
0

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
This commit is contained in:
madmaxoft
2013-07-29 21:42:05 +02:00
parent 3920e872f7
commit 9efcd5b82f
10 changed files with 65 additions and 0 deletions

View File

@@ -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);
}
} ;