diff options
author | madmaxoft <github@xoft.cz> | 2014-07-31 23:17:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-31 23:17:49 +0200 |
commit | 6d02fce9a26d4272baea08dc58238321cca0183a (patch) | |
tree | 0109076ae52c67513259d7946a44b9f7b5a563fb /src/Items/ItemHoe.h | |
parent | Removed trailing whitespace. (diff) | |
parent | Merge pull request #1267 from mc-server/RoofedForest (diff) | |
download | cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar.gz cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar.bz2 cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar.lz cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar.xz cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.tar.zst cuberite-6d02fce9a26d4272baea08dc58238321cca0183a.zip |
Diffstat (limited to 'src/Items/ItemHoe.h')
-rw-r--r-- | src/Items/ItemHoe.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Items/ItemHoe.h b/src/Items/ItemHoe.h index 29f7c83d5..8d0b71478 100644 --- a/src/Items/ItemHoe.h +++ b/src/Items/ItemHoe.h @@ -16,7 +16,6 @@ public: cItemHoeHandler(int a_ItemType) : cItemHandler(a_ItemType) { - } virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override @@ -26,13 +25,18 @@ public: if ((Block == E_BLOCK_DIRT) || (Block == E_BLOCK_GRASS)) { a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_FARMLAND, 0); - a_Player->UseEquippedItem(); return true; - } + return false; } + + + virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override + { + return 0; + } } ; |