summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-01-10 19:34:11 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-01-10 19:34:11 +0000
commit4c8931c9cddf109d9a3ba5985d68a9092dbf0356 (patch)
treea083f04695c2928f7c53d89b503e69eb01d6ff79 /init.lua
parent171a67ebf2be68ce08c706c436cb579bd2fa0ad6 (diff)
Tiny tweaks
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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