From 030972d3b55011f68e4b3de9fd84fb06dd33b3c1 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 23 Jun 2015 21:00:28 +0200 Subject: [PATCH] Fix broomstick iteration bug --- mods/broomstick/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/broomstick/init.lua b/mods/broomstick/init.lua index 67f4c2d3..6a11d590 100755 --- a/mods/broomstick/init.lua +++ b/mods/broomstick/init.lua @@ -13,7 +13,7 @@ minetest.register_craftitem("broomstick:broomstick", { local playername = user:get_player_name() if mana.get(playername) >= broomstick_mana then local has_already_a_broomstick = false - for i in ipairs(broomstick_actual_users) do + for _, i in ipairs(broomstick_actual_users) do if i.name == playername then has_already_a_broomstick = true end