forked from your-land-mirror/minetest-flow
Add compatibility hack
This commit is contained in:
parent
35fa361f8d
commit
b4a72ade99
9
init.lua
9
init.lua
@ -459,7 +459,14 @@ local function render_ast(node)
|
|||||||
if node.no_prepend then
|
if node.no_prepend then
|
||||||
res[#res + 1] = {type = "no_prepend"}
|
res[#res + 1] = {type = "no_prepend"}
|
||||||
end
|
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] = {
|
res[#res + 1] = {
|
||||||
type = "bgcolor",
|
type = "bgcolor",
|
||||||
bgcolor = node.bgcolor,
|
bgcolor = node.bgcolor,
|
||||||
|
Loading…
Reference in New Issue
Block a user