This commit is contained in:
Brett O'Donnell 2012-09-20 08:00:09 +09:30
parent 3ac901ed18
commit ad918c09d8

View File

@ -76,7 +76,7 @@ minetest.register_on_joinplayer(function(player)
end,
allow_take = function(inv, listname, index, stack, player)
if player:get_inventory():is_empty(listname.."contents")==true then
return stack:get_size(listname)
return stack:get_count()
else
return 0
end