diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 01:16:03 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-18 01:16:03 +0100 |
commit | 320cc74f0a1a8439f8f80a1fb45a19c950f42377 (patch) | |
tree | 9c05acedb74282b8a7133aca1d2ea23030c25c04 /src/Protocol/Protocol17x.cpp | |
parent | Merge pull request #684 from narroo/Bug402 (diff) | |
download | cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.gz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.bz2 cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.lz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.xz cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.tar.zst cuberite-320cc74f0a1a8439f8f80a1fb45a19c950f42377.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index f7d13774d..7da19a14b 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -21,6 +21,7 @@ Implements the 1.7.x protocol classes: #include "../Entities/ExpOrb.h" #include "../Entities/Minecart.h" #include "../Entities/FallingBlock.h" +#include "../Entities/Painting.h" #include "../Entities/Pickup.h" #include "../Entities/Player.h" #include "../Mobs/IncludeAllMonsters.h" @@ -569,6 +570,20 @@ void cProtocol172::SendLogin(const cPlayer & a_Player, const cWorld & a_World) +void cProtocol172::SendPaintingSpawn(const cPainting & a_Painting) +{ + cPacketizer Pkt(*this, 0x10); // Spawn Painting packet + Pkt.WriteVarInt(a_Painting.GetUniqueID()); + Pkt.WriteString(a_Painting.GetName().c_str()); + Pkt.WriteInt((int)a_Painting.GetPosX()); + Pkt.WriteInt((int)a_Painting.GetPosY()); + Pkt.WriteInt((int)a_Painting.GetPosZ()); + Pkt.WriteInt(a_Painting.GetDirection()); +} + + + + void cProtocol172::SendPickupSpawn(const cPickup & a_Pickup) { |