mirror of
https://repo.or.cz/minetest_playereffects.git
synced 2025-01-09 10:30:17 +01:00
Fix another leaking variable
This commit is contained in:
parent
3b860c74ae
commit
14612701ab
1
init.lua
1
init.lua
@ -482,6 +482,7 @@ function playereffects.hud_effect(effect_type_id, player, pos, time_left, repeat
|
|||||||
color = 0xF0BAFF
|
color = 0xF0BAFF
|
||||||
end
|
end
|
||||||
local description = playereffects.effect_types[effect_type_id].description
|
local description = playereffects.effect_types[effect_type_id].description
|
||||||
|
local text
|
||||||
if(repeat_interval_time_left ~= nil) then
|
if(repeat_interval_time_left ~= nil) then
|
||||||
text = description .. " ("..tostring(time_left).."/"..tostring(repeat_interval_time_left) .. "s )"
|
text = description .. " ("..tostring(time_left).."/"..tostring(repeat_interval_time_left) .. "s )"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user