projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e95b8a
)
Fix getting two old-style minerals per digged node
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 4 Dec 2011 01:47:55 +0000
(
03:47
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 4 Dec 2011 01:47:55 +0000
(
03:47
+0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index dcbc9fe7619ca16c84dd9c0e98bf3ec815fea7b2..e33a675c4a00d02ecc809be20c2858ddc7a84d50 100644
(file)
--- 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;