From 058c92661b0ddcd2943d4c561bd3c282188b751a Mon Sep 17 00:00:00 2001 From: Nils Dagsson Moskopp Date: Wed, 8 Nov 2023 20:29:31 +0100 Subject: [PATCH] + Color light and snow nodes white --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index f26af4c..afb5f67 100644 --- a/init.lua +++ b/init.lua @@ -37,6 +37,9 @@ end local get_node_color = function( node ) local short_name = node.name:gmatch(":.+")():gsub(":", "") local value = ( #short_name % ( string.byte( short_name ) - 65 ) ) * 8 + if short_name:find("light") or short_name:find("snow") then + value = 255 + end return clamp( value, 0, 255 ) end