Commit ad918c09 authored by Brett O'Donnell's avatar Brett O'Donnell
Browse files

fix bug

parent 3ac901ed
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment