Localize accidental global in smelter mod

This commit is contained in:
Wuzzy 2020-04-02 01:07:24 +02:00
parent 806fbf7c93
commit 2764bb9a6e
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ minetest.register_abm({
inv:add_item("dst", cooked.item)
-- take stuff from "src" list
for i=1,4 do
srcstack = inv:get_stack("src", i)
local srcstack = inv:get_stack("src", i)
if not srcstack:is_empty() then
minetest.log("verbose", "Removing "..srcstack:get_name())
srcstack:take_item(1)