diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-13 13:47:55 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-13 13:47:55 +0200 |
commit | d8d2f35e9dd354fba14f8d6512e818d18d2066c2 (patch) | |
tree | 159374402a90eb8a6b15e5a4bef2ea2d854985fa /source/Protocol/Protocol125.cpp | |
parent | Seventh round of fixes (diff) | |
download | cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.gz cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.bz2 cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.lz cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.xz cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.tar.zst cuberite-d8d2f35e9dd354fba14f8d6512e818d18d2066c2.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index 4730c3dfc..62863cd48 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -1695,18 +1695,17 @@ void cProtocol125::WriteEntityMetadata(const cEntity & a_Entity) WriteByte(0x73); WriteFloat((float)(((const cMinecart &)a_Entity).LastDamage() + 10)); // Damage taken / shake effect multiplyer - if (a_Entity.IsA("cMinecartWithFurnace")) + if (((cMinecart &)a_Entity).GetPayload() == cMinecart::mpFurnace) { WriteByte(0x10); WriteByte(((const cMinecartWithFurnace &)a_Entity).IsFueled() ? 1 : 0); // Fueled? } } - else if (a_Entity.IsA("cArrowEntity")); + else if ((a_Entity.IsProjectile() && ((cProjectileEntity &)a_Entity).GetProjectileKind() == cProjectileEntity::pkArrow)); { WriteByte(0x10); WriteByte(((const cArrowEntity &)a_Entity).IsCritical() ? 1 : 0); // Critical hitting arrow? } - } |