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

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