diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 03:47:55 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 03:47:55 +0200 |
commit | bff8be8b766de227d4bf25f162f857750a8fbd76 (patch) | |
tree | 244ca7423bcbe07eac08eae2be53ab37e43436a7 /src | |
parent | 3e95b8a1587ebce9443d4d716645798bfbb630f2 (diff) | |
download | minetest-bff8be8b766de227d4bf25f162f857750a8fbd76.tar.gz minetest-bff8be8b766de227d4bf25f162f857750a8fbd76.tar.bz2 minetest-bff8be8b766de227d4bf25f162f857750a8fbd76.zip |
Fix getting two old-style minerals per digged node
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/server.cpp b/src/server.cpp index dcbc9fe76..e33a675c4 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; |