diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-08-12 15:49:06 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-08-12 15:49:23 +0300 |
commit | e3b831e97505a6bd6a07813b2a0b8608637a3cd9 (patch) | |
tree | eca9cb99e15eb10e851ccfa3fe4f7798f8814ce6 | |
parent | d05e3adbc7fe912319a14d5c164941017f2c7170 (diff) | |
download | minetest-e3b831e97505a6bd6a07813b2a0b8608637a3cd9.tar.gz minetest-e3b831e97505a6bd6a07813b2a0b8608637a3cd9.tar.bz2 minetest-e3b831e97505a6bd6a07813b2a0b8608637a3cd9.zip |
Fix wrong amount of nodes being dropped from inventory
-rw-r--r-- | src/inventorymanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 424b02b53..ec4d47def 100644 --- 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))) { |