diff --git a/minetest/texmod/dsl.lua b/minetest/texmod/dsl.lua index bec2b26..3ffc910 100644 --- a/minetest/texmod/dsl.lua +++ b/minetest/texmod/dsl.lua @@ -297,7 +297,7 @@ function texmod:colorize(color, ratio) if ratio == "alpha" then assert(color.alpha or 0xFF == 0xFF) else - ratio = ratio or color.alpha + ratio = ratio or color.alpha or 0xFF assert_uint8(ratio) if color.alpha == ratio then ratio = nil