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:
d05e3ad
)
Fix wrong amount of nodes being dropped from inventory
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 12 Aug 2012 12:49:06 +0000
(15:49 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 12 Aug 2012 12:49:23 +0000
(15:49 +0300)
src/inventorymanager.cpp
patch
|
blob
|
history
diff --git
a/src/inventorymanager.cpp
b/src/inventorymanager.cpp
index 424b02b53fbd8c0e0fdc38053de7336920cfbbf5..ec4d47def36bdd94abc8a34f8d513e55b596e883 100644
(file)
--- a/
src/inventorymanager.cpp
+++ b/
src/inventorymanager.cpp
@@
-575,6
+575,7
@@
void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
// Drop the item
ItemStack item1 = list_from->getItem(from_i);
+ item1.count = take_count;
if(scriptapi_item_on_drop(player->getEnv()->getLua(), item1, player,
player->getBasePosition() + v3f(0,1,0)))
{