From ae9b5e00989756bb676429530dfe81039009001c Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 20 Aug 2017 19:37:29 +0200 Subject: Modernize code: very last fixes (#6290) Last modernization fixes --- src/wieldmesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wieldmesh.cpp') diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp index 332c8ba22..df23dc433 100644 --- a/src/wieldmesh.cpp +++ b/src/wieldmesh.cpp @@ -376,7 +376,8 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client) } return; } - else if (!def.inventory_image.empty()) { + + if (!def.inventory_image.empty()) { setExtruded(def.inventory_image, def.wield_scale, tsrc, 1); m_colors.emplace_back(); return; -- cgit v1.2.3