Skip to content
Snippets Groups Projects
Commit ad918c09 authored by Brett O'Donnell's avatar Brett O'Donnell
Browse files

fix bug

parent 3ac901ed
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment