diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-12 19:07:17 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-12 19:07:17 +0100 |
commit | 8470841f84a04301ef45c2ec9f1f3aabecb83582 (patch) | |
tree | a3ed02c62c6b5aca455ad32c90a23497d87f2ae0 /src/WorldStorage | |
parent | Updated Core. (diff) | |
download | cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar.gz cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar.bz2 cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar.lz cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar.xz cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.tar.zst cuberite-8470841f84a04301ef45c2ec9f1f3aabecb83582.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index d72165c46..e95813a3c 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -1083,6 +1083,10 @@ void cWSSAnvil::LoadEntityFromNBT(cEntityList & a_Entities, const cParsedNBT & a { LoadHorseFromNBT(a_Entities, a_NBT, a_EntityTagIdx); } + else if (strncmp(a_IDTag, "Villager", a_IDTagLength) == 0) + { + LoadVillagerFromNBT(a_Entities, a_NBT, a_EntityTagIdx); + } else if (strncmp(a_IDTag, "VillagerGolem", a_IDTagLength) == 0) { LoadIronGolemFromNBT(a_Entities, a_NBT, a_EntityTagIdx); @@ -1131,10 +1135,6 @@ void cWSSAnvil::LoadEntityFromNBT(cEntityList & a_Entities, const cParsedNBT & a { LoadSquidFromNBT(a_Entities, a_NBT, a_EntityTagIdx); } - else if (strncmp(a_IDTag, "Villager", a_IDTagLength) == 0) - { - LoadVillagerFromNBT(a_Entities, a_NBT, a_EntityTagIdx); - } else if (strncmp(a_IDTag, "Witch", a_IDTagLength) == 0) { LoadWitchFromNBT(a_Entities, a_NBT, a_EntityTagIdx); |