diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-04-26 16:44:15 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-04-26 16:44:15 +0200 |
commit | 49f6819829b437f776ea08f50c92cc506ee9ddcb (patch) | |
tree | 34c7018d226f2fc29e9eea604a043554abd43a39 /src/WorldStorage | |
parent | Change m_InvulnerableTicks description again again :D (diff) | |
download | cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.gz cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.bz2 cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.lz cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.xz cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.zst cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.zip |
Diffstat (limited to 'src/WorldStorage')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 | ||||
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index b6c14db9c..46c6b8e92 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -516,7 +516,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster) } case cMonster::mtWither: { - m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetNumInvulnerableTicks()); + m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetWitherInvulnerableTicks()); break; } case cMonster::mtWolf: diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 66144dbd5..4532a925a 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -2272,7 +2272,7 @@ void cWSSAnvil::LoadWitherFromNBT(cEntityList & a_Entities, const cParsedNBT & a int CurrLine = a_NBT.FindChildByName(a_TagIdx, "Invul"); if (CurrLine > 0) { - Monster->SetNumInvulnerableTicks(a_NBT.GetInt(CurrLine)); + Monster->SetWitherInvulnerableTicks(a_NBT.GetInt(CurrLine)); } a_Entities.push_back(Monster.release()); |