Fix getting two old-style minerals per digged node

stable-0.4
Perttu Ahola 2011-12-04 03:47:55 +02:00
parent 3e95b8a158
commit bff8be8b76
1 changed files with 1 additions and 6 deletions

View 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;