summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-04-28 13:51:22 +0200
committerHowaner <franzi.moos@googlemail.com>2014-04-28 13:51:22 +0200
commit26e935cb2028e041623424d474ccf1b127d55e97 (patch)
treec9d67cb8336f9d47b643fc1ee7c4d3248a8d15f4 /src/WorldStorage/NBTChunkSerializer.cpp
parentChanged the old invulnerable methods from the wither to the new. (diff)
downloadcuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.gz
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.bz2
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.lz
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.xz
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.zst
cuberite-26e935cb2028e041623424d474ccf1b127d55e97.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 0c4a1a430..46c6b8e92 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -516,14 +516,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
}
case cMonster::mtWither:
{
- if (((const cWither *)a_Monster)->IsSpawnInvulnerable())
- {
- m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetInvulnerableTicks());
- }
- else
- {
- m_Writer.AddInt("Invul", 0);
- }
+ m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetWitherInvulnerableTicks());
break;
}
case cMonster::mtWolf: