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/Items/ItemSword.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/Items/ItemSword.h') diff --git a/src/Items/ItemSword.h b/src/Items/ItemSword.h index 5730691cf..773b84388 100644 --- a/src/Items/ItemSword.h +++ b/src/Items/ItemSword.h @@ -46,13 +46,10 @@ public: { switch (a_Action) { - case dlaAttackEntity: return 1; - case dlaBreakBlock: return 2; + case dlaAttackEntity: return 1; + case dlaBreakBlock: return 2; + case dlaBreakBlockInstant: return 0; } - - #ifndef __clang__ - return 0; - #endif } @@ -83,7 +80,3 @@ public: } } ; - - - - -- cgit v1.2.3