1
0

Revert "Changed the old invulnerable methods from the wither to the new."

This reverts commit d50f8f6f11.
This commit is contained in:
Howaner
2014-04-28 13:51:22 +02:00
parent d50f8f6f11
commit 26e935cb20
5 changed files with 4 additions and 28 deletions

View File

@@ -2013,14 +2013,7 @@ void cProtocol125::WriteMobMetadata(const cMonster & a_Mob)
case cMonster::mtWither:
{
WriteByte(0x54); // Int at index 20
if (((const cWither &)a_Mob).IsSpawnInvulnerable())
{
WriteInt((Int32)((const cWither &)a_Mob).GetInvulnerableTicks());
}
else
{
WriteInt((Int32)0);
}
WriteInt((Int32)((const cWither &)a_Mob).GetWitherInvulnerableTicks());
WriteByte(0x66); // Float at index 6
WriteFloat((float)(a_Mob.GetHealth()));
break;