Fix wrong amount of nodes being dropped from inventory

This commit is contained in:
Perttu Ahola 2012-08-12 15:49:06 +03:00
parent d05e3adbc7
commit e3b831e975
1 changed files with 1 additions and 0 deletions

View File

@ -575,6 +575,7 @@ void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
// Drop the item // Drop the item
ItemStack item1 = list_from->getItem(from_i); ItemStack item1 = list_from->getItem(from_i);
item1.count = take_count;
if(scriptapi_item_on_drop(player->getEnv()->getLua(), item1, player, if(scriptapi_item_on_drop(player->getEnv()->getLua(), item1, player,
player->getBasePosition() + v3f(0,1,0))) player->getBasePosition() + v3f(0,1,0)))
{ {