diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2017-08-27 23:37:39 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2017-08-30 19:00:17 +0200 |
commit | 5481249d0f6025251e811f2e35daa79ee7c258aa (patch) | |
tree | 6f2bfd59cbf4d11b1236b8c24e1b1b7dd09077f5 /src/Protocol/Protocol_1_8.cpp | |
parent | Merge pull request #3969 from peterbell10/cuboid (diff) | |
download | cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar.gz cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar.bz2 cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar.lz cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar.xz cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.tar.zst cuberite-5481249d0f6025251e811f2e35daa79ee7c258aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index b6e5b5a38..0a0073b21 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -1597,6 +1597,15 @@ void cProtocol_1_8_0::SendUseBed(const cEntity & a_Entity, int a_BlockX, int a_B +void cProtocol_1_8_0::SendVillagerTradeList(const cWindow &, const std::vector<VillagerTradeOffer> &) +{ + // Unimplemented +} + + + + + void cProtocol_1_8_0::SendWeather(eWeather a_Weather) { ASSERT(m_State == 3); // In game mode? @@ -3577,7 +3586,7 @@ void cProtocol_1_8_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_M { auto & Villager = reinterpret_cast<const cVillager &>(a_Mob); a_Pkt.WriteBEUInt8(0x50); - a_Pkt.WriteBEInt32(Villager.GetVilType()); + a_Pkt.WriteBEInt32(static_cast<Int32>(cVillager::VillagerCareerToProfession(Villager.GetCareer()))); a_Pkt.WriteBEUInt8(0x0c); a_Pkt.WriteBEInt8(Villager.IsBaby() ? -1 : 0); break; |