Fix multiple holidays on same day not shown
parent
9bfc5a2369
commit
ff934eec7d
4
gui.lua
4
gui.lua
|
@ -83,7 +83,9 @@ function calendar.show_calendar(player_name, settings, wanted_months, wanted_yea
|
|||
local holidays = calendar.get_holidays(tdays)
|
||||
local tooltip_lines = {}
|
||||
if #holidays > 0 then
|
||||
table.insert(tooltip_lines, minetest.colorize(COLOR_HOLIDAY, holidays[1].name))
|
||||
for h=1, #holidays do
|
||||
table.insert(tooltip_lines, minetest.colorize(COLOR_HOLIDAY, holidays[h].name))
|
||||
end
|
||||
day_str = minetest.colorize(COLOR_HOLIDAY, day_str)
|
||||
box_color = COLOR_DAYBOX_HOLIDAY
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue