From 9bb904b96f777ed6a7b4436497b3d4d0919a171c Mon Sep 17 00:00:00 2001 From: Extex101 <33675971+Extex101@users.noreply.github.com> Date: Mon, 23 Dec 2019 19:56:06 -0800 Subject: [PATCH] Fix stuff --- init.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index d08b1f2..8867729 100644 --- a/init.lua +++ b/init.lua @@ -165,12 +165,15 @@ minetest.register_node("christmas:stocking", { minetest.chat_send_player(owner, "Your stocking is empty. (refill in: "..time..")")--Whyyyyyyy??? 😭 elseif not inv:is_empty("main") then local item1 = inv:get_stack("main", 1) - local leftover1 = playerinv:add_item("main", item1) + playerinv:add_item("main", item1) local item2 = inv:get_stack("main", 2) - local leftover2 = playerinv:add_item("main", item2) + playerinv:add_item("main", item2) local item3 = inv:get_stack("main", 3) - local leftover3 = playerinv:add_item("main", item3) - timer:start(5400) + playerinv:add_item("main", item3) + inv:set_stack("main", 1 ,'') + inv:set_stack("main", 2 ,'') + inv:set_stack("main", 3 ,'') + timer:start(5400) end end, })