diff options
author | Kirill Kirilenko <root@ultracoder.ru> | 2014-01-31 18:34:00 +0100 |
---|---|---|
committer | Kirill Kirilenko <root@ultracoder.ru> | 2014-01-31 18:34:00 +0100 |
commit | 8180b643fff149e6411a57d0250ae54d94fcd29a (patch) | |
tree | f5cb70ed41653b4c8da41046ccca0a4397adc9e8 /src | |
parent | Merge pull request #607 from mc-server/Wolf_Owner_Saving (diff) | |
download | cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar.gz cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar.bz2 cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar.lz cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar.xz cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.tar.zst cuberite-8180b643fff149e6411a57d0250ae54d94fcd29a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 02396bb16..63999add3 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -1886,6 +1886,12 @@ void cWSSAnvil::LoadWolfFromNBT(cEntityList & a_Entities, const cParsedNBT & a_N Monster->SetIsTame(true); } } + int SittingIdx = a_NBT.FindChildByName(a_TagIdx, "Sitting"); + if (SittingIdx > 0) + { + bool IsSitting = (a_NBT.GetByte(SittingIdx) > 0); + Monster->SetIsSitting(IsSitting); + } a_Entities.push_back(Monster.release()); } |