1
0

Merge pull request #940 from Howaner/GlobalFixes

Add entity invulnerable
This commit is contained in:
Mattes D
2014-04-28 20:58:15 +02:00
26 changed files with 132 additions and 68 deletions

View File

@@ -2824,7 +2824,7 @@ void cProtocol172::cPacketizer::WriteMobMetadata(const cMonster & a_Mob)
case cMonster::mtWither:
{
WriteByte(0x54); // Int at index 20
WriteInt(((const cWither &)a_Mob).GetNumInvulnerableTicks());
WriteInt(((const cWither &)a_Mob).GetWitherInvulnerableTicks());
WriteByte(0x66); // Float at index 6
WriteFloat((float)(a_Mob.GetHealth()));
break;