diff options
author | TheJumper <maximilian.springer@web.de> | 2014-02-23 19:12:34 +0100 |
---|---|---|
committer | TheJumper <maximilian.springer@web.de> | 2014-02-23 19:12:34 +0100 |
commit | 847aef898de868dd88354adfb763e48fad22d6b2 (patch) | |
tree | bb5202265e994a69e16041a86e8199563ee6e940 /src/WorldStorage/WSSAnvil.cpp | |
parent | Fixed Compiling Issues (diff) | |
download | cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar.gz cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar.bz2 cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar.lz cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar.xz cuberite-847aef898de868dd88354adfb763e48fad22d6b2.tar.zst cuberite-847aef898de868dd88354adfb763e48fad22d6b2.zip |
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 10c8d1f51..05332d23d 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -2179,6 +2179,8 @@ bool cWSSAnvil::LoadMonsterBaseFromNBT(cMonster & a_Monster, const cParsedNBT & a_Monster.SetDropChanceChestplate(DropChance[2]); a_Monster.SetDropChanceLeggings(DropChance[3]); a_Monster.SetDropChanceBoots(DropChance[4]); + bool CanPickUpLoot = (a_NBT.GetByte(a_NBT.FindChildByName(a_TagIdx, "CanPickUpLoot")) == 1); + a_Monster.SetCanPickUpLoot(CanPickUpLoot); return true; } |