From b2d28682148da2b535bef5a6f39c0fa99b1d7bf3 Mon Sep 17 00:00:00 2001 From: darkrose Date: Sat, 15 Nov 2014 19:17:54 +1000 Subject: [PATCH] can't dig with clothes --- src/content_toolitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content_toolitem.cpp b/src/content_toolitem.cpp index bcca9e5..5d0cd75 100644 --- a/src/content_toolitem.cpp +++ b/src/content_toolitem.cpp @@ -19,6 +19,7 @@ #include "content_toolitem.h" #include "content_craftitem.h" +#include "content_clothesitem.h" #include "content_craft.h" #include "content_list.h" #include "content_mapnode.h" @@ -56,7 +57,7 @@ DiggingProperties getDiggingProperties(content_t content, content_t tool) if (t_features.hardness && c_features.hardness) wear = 65535/t_features.hardness*c_features.hardness; f32 diggable = true; - if (c_features.type == CMT_STONE && t_features.type != TT_PICK) { + if ((tool&CONTENT_CLOTHESITEM_MASK) == CONTENT_CLOTHESITEM_MASK || (c_features.type == CMT_STONE && t_features.type != TT_PICK)) { diggable = false; }else{ switch (t_features.type) {