diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-19 22:14:37 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-19 22:14:37 +0200 |
commit | b5ffe06f884221f98407910bdd30baf533d84970 (patch) | |
tree | 6f7768641979fa5f57525eb98e8a7e37b71bfe06 /src/Items | |
parent | Player: Silenced a few type conversion warnings. (diff) | |
download | cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.gz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.bz2 cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.lz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.xz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.zst cuberite-b5ffe06f884221f98407910bdd30baf533d84970.zip |
Diffstat (limited to 'src/Items')
-rw-r--r-- | src/Items/ItemGoldenApple.h | 2 | ||||
-rw-r--r-- | src/Items/ItemShovel.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemGoldenApple.h b/src/Items/ItemGoldenApple.h index 4e1096e65..02ac0202c 100644 --- a/src/Items/ItemGoldenApple.h +++ b/src/Items/ItemGoldenApple.h @@ -29,7 +29,7 @@ public: a_Player->AddEntityEffect(cEntityEffect::effRegeneration, 100, 1); // When the apple is a 'notch apple', give extra effects: - if (a_Item->m_ItemDamage > 0) + if (a_Item->m_ItemDamage >= E_META_GOLDEN_APPLE_ENCHANTED) { a_Player->AddEntityEffect(cEntityEffect::effRegeneration, 600, 4); a_Player->AddEntityEffect(cEntityEffect::effResistance, 6000, 0); diff --git a/src/Items/ItemShovel.h b/src/Items/ItemShovel.h index 7d5760fa9..cd235678d 100644 --- a/src/Items/ItemShovel.h +++ b/src/Items/ItemShovel.h @@ -19,7 +19,6 @@ public: cItemShovelHandler(int a_ItemType) : cItemHandler(a_ItemType) { - } virtual bool OnDiggingBlock(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override |