mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Replace 'minetest.' with 'core.' in builtin
This commit is contained in:
parent
9736b9cea5
commit
4db7fb4a3b
7 changed files with 18 additions and 18 deletions
|
@ -84,8 +84,8 @@ local function update_builtin_statbars(player)
|
|||
end
|
||||
|
||||
if hud.id_breathbar and (not show_breathbar or breath == breath_max) then
|
||||
minetest.after(1, function(player_name, breath_bar)
|
||||
local player = minetest.get_player_by_name(player_name)
|
||||
core.after(1, function(player_name, breath_bar)
|
||||
local player = core.get_player_by_name(player_name)
|
||||
if player then
|
||||
player:hud_remove(breath_bar)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue