From 5abcd8433f6eb5877763d71b21935439e0719c9f Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 12 Sep 2018 23:00:48 -0400 Subject: [PATCH] get rid of old 89->256 color conversion LBM (obsolete, can only crash now anyway) --- init.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/init.lua b/init.lua index dd24b77..9c0f7fc 100644 --- a/init.lua +++ b/init.lua @@ -402,32 +402,5 @@ minetest.register_lbm({ end }) -minetest.register_lbm({ - name = "stained_glass:recolor_glass", - label = "Convert glass to use UD extended palette", - run_at_every_load = false, - nodenames = { - "stained_glass:stained_glass", - "stained_glass:stained_trap_glass", - "stained_glass:faint_stained_glass", - "stained_glass:faint_stained_trap_glass", - "stained_glass:pastel_stained_glass", - "stained_glass:pastel_stained_trap_glass" - }, - action = function(pos, node) - local meta = minetest.get_meta(pos) - if meta:get_string("palette") ~= "ext" then - - local newcolor = unifieddyes.convert_classic_palette[node.param2] - if string.find(node.name, "faint") then - newcolor = newcolor - 4*24 - elseif string.find(node.name, "pastel") then - newcolor = newcolor - 3*24 - end - minetest.swap_node(pos, { name = "stained_glass:stained_glass", param2 = newcolor }) - meta:set_string("palette", "ext") - end - end -}) print("[stained_glass] Loaded!")