1
0

Wolf: If Owner tag is missing a normal ownerless wolf will spawn.

This commit is contained in:
STRWarrior 2014-01-31 16:27:21 +01:00
parent 550a09020d
commit c7e4ade7c3

View File

@ -1879,16 +1879,13 @@ void cWSSAnvil::LoadWolfFromNBT(cEntityList & a_Entities, const cParsedNBT & a_N
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
if (OwnerIdx < 0)
{
return;
AString OwnerName = a_NBT.GetString(OwnerIdx);
if (OwnerName != "")
{
Monster->SetOwner(OwnerName);
Monster->SetIsTame(true);
}
}
AString OwnerName = a_NBT.GetString(OwnerIdx);
if (OwnerName != "")
{
Monster->SetOwner(OwnerName);
Monster->SetIsTame(true);
}
a_Entities.push_back(Monster.release());
}