From e3b831e97505a6bd6a07813b2a0b8608637a3cd9 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 12 Aug 2012 15:49:06 +0300 Subject: [PATCH] Fix wrong amount of nodes being dropped from inventory --- src/inventorymanager.cpp | 1 + 1 file changed, 1 insertion(+) 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))) { -- 2.25.1