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_12.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_12.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_12.cpp b/src/Protocol/Protocol_1_12.cpp index a8e38a4e0..6e2ef5daa 100644 --- a/src/Protocol/Protocol_1_12.cpp +++ b/src/Protocol/Protocol_1_12.cpp @@ -889,7 +889,7 @@ void cProtocol_1_12::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mo a_Pkt.WriteBEUInt8(VILLAGER_PROFESSION); a_Pkt.WriteBEUInt8(METADATA_TYPE_VARINT); - a_Pkt.WriteVarInt32(static_cast<UInt32>(Villager.GetVilType())); + a_Pkt.WriteVarInt32(static_cast<UInt32>(cVillager::VillagerCareerToProfession(Villager.GetCareer()))); break; } // case mtVillager |