diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-06-29 01:01:10 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-06-29 01:01:10 +0200 |
commit | 20b32fc44e69ef317dea7536eb8e31bc3fe6c562 (patch) | |
tree | 6fac0b81db85d9947db2fd2830107df633dbe6a3 /src/WorldStorage | |
parent | Save IsSheared from Sheep. (diff) | |
download | cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.gz cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.bz2 cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.lz cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.xz cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.tar.zst cuberite-20b32fc44e69ef317dea7536eb8e31bc3fe6c562.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 5c209c7fa..b22454cdf 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -2093,7 +2093,7 @@ void cWSSAnvil::LoadSheepFromNBT(cEntityList & a_Entities, const cParsedNBT & a_ int ShearedIdx = a_NBT.FindChildByName(a_TagIdx, "Sheared"); if (ShearedIdx > 0) { - Monster.get()->SetSheared((bool)a_NBT.GetByte(ShearedIdx)); + Monster->SetSheared(a_NBT.GetByte(ShearedIdx) != 0); } a_Entities.push_back(Monster.release()); |