Changed the old invulnerable methods from the wither to the new.
This commit is contained in:
@@ -516,7 +516,14 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
|
||||
}
|
||||
case cMonster::mtWither:
|
||||
{
|
||||
m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetWitherInvulnerableTicks());
|
||||
if (((const cWither *)a_Monster)->IsSpawnInvulnerable())
|
||||
{
|
||||
m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetInvulnerableTicks());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Writer.AddInt("Invul", 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case cMonster::mtWolf:
|
||||
|
||||
Reference in New Issue
Block a user