Fix getting two old-style minerals per digged node
authorPerttu Ahola <celeron55@gmail.com>
Sun, 4 Dec 2011 01:47:55 +0000 (03:47 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 4 Dec 2011 01:47:55 +0000 (03:47 +0200)
src/server.cpp

index dcbc9fe7619ca16c84dd9c0e98bf3ec815fea7b2..e33a675c4a00d02ecc809be20c2858ddc7a84d50 100644 (file)
@@ -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;