mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fix broomstick iteration bug
This commit is contained in:
parent
7dd61d7bac
commit
030972d3b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user