Fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user