diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index ec1a81b18..ea5b69636 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "player.h" #include "log.h" #include "mapnode_contentfeatures.h" +#include "tool.h" /* InventoryItem @@ -167,6 +168,15 @@ InventoryItem *MaterialItem::createCookResult() const } /* + ToolItem +*/ + +std::string ToolItem::getImageBasename() const +{ + return tool_get_imagename(m_toolname); +} + +/* CraftItem */ |