forked from Mirrorlandia_minetest/minetest
Fix wrong amount of nodes being dropped from inventory
This commit is contained in:
parent
d05e3adbc7
commit
e3b831e975
@ -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)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user