From: Perttu Ahola Date: Sun, 12 Aug 2012 12:49:06 +0000 (+0300) Subject: Fix wrong amount of nodes being dropped from inventory X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e3b831e97505a6bd6a07813b2a0b8608637a3cd9;p=zefram%2Fminetest%2Fminetest_engine.git Fix wrong amount of nodes being dropped from inventory --- diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 424b02b5..ec4d47de 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))) {