From 0a7ba2e5f78800f310b538232c96988c348544fd Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Mon, 16 Aug 2021 11:41:41 +0200 Subject: [PATCH] Use modlib colorspec --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 26b87a1..97183bb 100644 --- a/main.lua +++ b/main.lua @@ -1,3 +1,4 @@ +local colorspec_new = modlib.minetest.colorspec.new modlib.log.create_channel"deathlist" -- Create modlib.log channel local coordinate = { @@ -73,7 +74,7 @@ end for _, table in pairs{ environmental_reasons, environmental_reasons.drowning.nodes, environmental_reasons.node_damage.nodes } do for _, value in pairs(table) do if value.color then - value.color = modlib.minetest.get_color_int(value.color) + value.color = colorspec_new(value.color):to_number_rgb() end end end