commit
91b15b475a
@ -490,7 +490,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
|
||||
}
|
||||
case cMonster::mtMagmaCube:
|
||||
{
|
||||
m_Writer.AddByte("Size", ((const cMagmaCube *)a_Monster)->GetSize());
|
||||
m_Writer.AddInt("Size", ((const cMagmaCube *)a_Monster)->GetSize());
|
||||
break;
|
||||
}
|
||||
case cMonster::mtSheep:
|
||||
|
@ -1974,7 +1974,10 @@ void cWSSAnvil::LoadMagmaCubeFromNBT(cEntityList & a_Entities, const cParsedNBT
|
||||
{
|
||||
int SizeIdx = a_NBT.FindChildByName(a_TagIdx, "Size");
|
||||
|
||||
if (SizeIdx < 0) { return; }
|
||||
if (SizeIdx < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int Size = a_NBT.GetInt(SizeIdx);
|
||||
|
||||
@ -2132,7 +2135,10 @@ void cWSSAnvil::LoadSlimeFromNBT(cEntityList & a_Entities, const cParsedNBT & a_
|
||||
{
|
||||
int SizeIdx = a_NBT.FindChildByName(a_TagIdx, "Size");
|
||||
|
||||
if (SizeIdx < 0) { return; }
|
||||
if (SizeIdx < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int Size = a_NBT.GetInt(SizeIdx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user