Player can sit in minecarts (but not move them yet)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1249 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -63,6 +63,7 @@ enum
|
||||
PACKET_ENT_TELEPORT = 0x22,
|
||||
PACKET_ENT_HEAD_LOOK = 0x23,
|
||||
PACKET_ENT_STATUS = 0x26,
|
||||
PACKET_ATTACH_ENTITY = 0x27,
|
||||
PACKET_METADATA = 0x28,
|
||||
PACKET_PRE_CHUNK = 0x32,
|
||||
PACKET_MAP_CHUNK = 0x33,
|
||||
@@ -122,6 +123,19 @@ cProtocol125::cProtocol125(cClientHandle * a_Client) :
|
||||
|
||||
|
||||
|
||||
void cProtocol125::SendAttachEntity(const cEntity & a_Entity, const cEntity * a_Vehicle)
|
||||
{
|
||||
cCSLock Lock(m_CSPacket);
|
||||
WriteByte(PACKET_ATTACH_ENTITY);
|
||||
WriteInt(a_Entity.GetUniqueID());
|
||||
WriteInt((a_Vehicle == NULL) ? -1 : a_Vehicle->GetUniqueID());
|
||||
Flush();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cProtocol125::SendBlockAction(int a_BlockX, int a_BlockY, int a_BlockZ, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType)
|
||||
{
|
||||
UNUSED(a_BlockType);
|
||||
|
||||
Reference in New Issue
Block a user