diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 21:09:02 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 21:09:02 +0200 |
commit | 9c7a6bc443605612c09be824c452b9287fa2bfdb (patch) | |
tree | 5ab12d2950546976127c168330ca18d9afaf59b6 /src/WorldStorage/WSSAnvil.cpp | |
parent | Fixed a NetherFinisher bug (diff) | |
download | cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.gz cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.bz2 cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.lz cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.xz cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.zst cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 1891762fd..f58e876e0 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -2456,6 +2456,7 @@ bool cWSSAnvil::LoadMonsterBaseFromNBT(cMonster & a_Monster, const cParsedNBT & a_Monster.SetDropChanceBoots(DropChance[4]); bool CanPickUpLoot = (a_NBT.GetByte(a_NBT.FindChildByName(a_TagIdx, "CanPickUpLoot")) == 1); a_Monster.SetCanPickUpLoot(CanPickUpLoot); + a_Monster.SetHealth(a_NBT.GetShort(a_NBT.FindChildByName(a_TagIdx, "Health"))); return true; } |