mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
fix add_bar function returning nil value
This commit is contained in:
parent
d77affca91
commit
11114c6847
@ -60,7 +60,7 @@ function mcl_bossbars.add_bar(player, def)
|
||||
bar.id = last_id + 1
|
||||
last_id = bar.id
|
||||
mcl_bossbars.static[bar.id] = bar
|
||||
return id
|
||||
return bar.id
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user