Add compatibility hack

This commit is contained in:
luk3yx 2023-06-01 17:05:25 +12:00
parent 35fa361f8d
commit b4a72ade99

View File

@ -459,7 +459,14 @@ local function render_ast(node)
if node.no_prepend then
res[#res + 1] = {type = "no_prepend"}
end
if node.fbgcolor or node.bgcolor or node.bg_fullscreen then
if node.fbgcolor or node.bgcolor or node.bg_fullscreen ~= nil then
-- Hack to prevent breaking mods that relied on the broken behaviour of
-- fbgcolor
if node.fbgcolor == "#08080880" and node.bgcolor == nil and
node.bg_fullscreen == nil then
node.bg_fullscreen = true
end
res[#res + 1] = {
type = "bgcolor",
bgcolor = node.bgcolor,