From: Perttu Ahola Date: Sun, 4 Dec 2011 01:47:55 +0000 (+0200) Subject: Fix getting two old-style minerals per digged node X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=bff8be8b766de227d4bf25f162f857750a8fbd76;p=zefram%2Fminetest%2Fminetest_engine.git Fix getting two old-style minerals per digged node --- diff --git a/src/server.cpp b/src/server.cpp index dcbc9fe7..e33a675c 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -3140,12 +3140,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) } item = NULL; - - if(mineral != MINERAL_NONE) - item = getDiggedMineralItem(mineral, this); - - // If not mineral - if(item == NULL) + { const std::string &extra_dug_s = m_nodedef->get(material).extra_dug_item; s32 extra_rarity = m_nodedef->get(material).extra_dug_item_rarity;