diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-04-28 13:51:22 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-04-28 13:51:22 +0200 |
commit | 26e935cb2028e041623424d474ccf1b127d55e97 (patch) | |
tree | c9d67cb8336f9d47b643fc1ee7c4d3248a8d15f4 /src/Protocol/Protocol125.cpp | |
parent | Changed the old invulnerable methods from the wither to the new. (diff) | |
download | cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.gz cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.bz2 cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.lz cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.xz cuberite-26e935cb2028e041623424d474ccf1b127d55e97.tar.zst cuberite-26e935cb2028e041623424d474ccf1b127d55e97.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol125.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp index 3951eb3e4..a23afb29a 100644 --- a/src/Protocol/Protocol125.cpp +++ b/src/Protocol/Protocol125.cpp @@ -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; |