diff options
author | Mattes D <github@xoft.cz> | 2014-07-27 21:39:39 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-27 21:39:39 +0200 |
commit | 0814a977f8a99fb776a73b44bff14b2a6fb11059 (patch) | |
tree | edd7271430e1c0204808b3c12b7735959677b733 /src/Items/ItemHoe.h | |
parent | NetherClumpGenerator: Fixed generating stuff on halfslabs and fences (diff) | |
parent | Derp. (diff) | |
download | cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar.gz cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar.bz2 cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar.lz cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar.xz cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.tar.zst cuberite-0814a977f8a99fb776a73b44bff14b2a6fb11059.zip |
Diffstat (limited to '')
-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; + } } ; |