From ad918c09d8e00097955168481d7ad3fb5e27be38 Mon Sep 17 00:00:00 2001 From: Brett O'Donnell Date: Thu, 20 Sep 2012 08:00:09 +0930 Subject: [PATCH] fix bug --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4899be6..b463f5c 100644 --- a/init.lua +++ b/init.lua @@ -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