From 4c8931c9cddf109d9a3ba5985d68a9092dbf0356 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 10 Jan 2016 19:34:11 +0000 Subject: Tiny tweaks --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index b235c4b..d13279e 100644 --- a/init.lua +++ b/init.lua @@ -481,7 +481,7 @@ function farming.refill_plant(player, plantname, index) if old_stack:get_name() ~= "" then return end - for i, stack in ipairs(inv:get_list("main")) do + for i, stack in pairs(inv:get_list("main")) do if stack:get_name() == plantname and i ~= index then -- cgit v1.2.3