From b4aa19f329b06e42eb2591fc488b70dc0df41940 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Fri, 5 Jan 2018 11:28:06 +0000 Subject: Item durability loss now depends on the item used. (#4123) Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119 --- src/Blocks/BlockBigFlower.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Blocks/BlockBigFlower.h') diff --git a/src/Blocks/BlockBigFlower.h b/src/Blocks/BlockBigFlower.h index 45ba5ac02..defe57d99 100644 --- a/src/Blocks/BlockBigFlower.h +++ b/src/Blocks/BlockBigFlower.h @@ -3,6 +3,7 @@ #include "BlockHandler.h" #include "ChunkInterface.h" +#include "../Items/ItemHandler.h" @@ -132,6 +133,7 @@ public: ) { a_ChunkInterface.SetBlock(BlockPos.x, BlockPos.y, BlockPos.z, 0, 0); + a_Player.UseEquippedItem(cItemHandler::dlaBreakBlockInstant); } } @@ -184,7 +186,3 @@ public: return 7; } } ; - - - - -- cgit v1.2.3