1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Fix broomstick iteration bug

This commit is contained in:
LeMagnesium 2015-06-23 21:00:28 +02:00
parent 7dd61d7bac
commit 030972d3b5

View File

@ -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