Fix wrong amount of nodes being dropped from inventory
authorPerttu Ahola <celeron55@gmail.com>
Sun, 12 Aug 2012 12:49:06 +0000 (15:49 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 12 Aug 2012 12:49:23 +0000 (15:49 +0300)
src/inventorymanager.cpp

index 424b02b53fbd8c0e0fdc38053de7336920cfbbf5..ec4d47def36bdd94abc8a34f8d513e55b596e883 100644 (file)
@@ -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)))
        {