From fc781daca0328271e04d0a0631c75ad5b8063bdb Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 12 Sep 2018 23:03:41 -0400 Subject: [PATCH] get rid of old 89->256 color LBMs --- homedecor/bathroom_furniture.lua | 18 ------------------ homedecor/lighting.lua | 25 ------------------------- lavalamp/init.lua | 17 ----------------- 3 files changed, 60 deletions(-) diff --git a/homedecor/bathroom_furniture.lua b/homedecor/bathroom_furniture.lua index 4840b26b..146ad69c 100644 --- a/homedecor/bathroom_furniture.lua +++ b/homedecor/bathroom_furniture.lua @@ -164,21 +164,3 @@ minetest.register_lbm({ meta:set_string("palette", "ext") end }) - -minetest.register_lbm({ - name = "homedecor:recolor_bathroom_tiles", - label = "Convert bathroom tiles to use UD extended palette", - run_at_every_load = false, - nodenames = { - "homedecor:bathroom_tiles_light", - "homedecor:bathroom_tiles_medium", - "homedecor:bathroom_tiles_dark", - }, - action = function(pos, node) - local meta = minetest.get_meta(pos) - if meta:get_string("palette") ~= "ext" then - minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] }) - meta:set_string("palette", "ext") - end - end -}) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index a33c7615..9055f23a 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -735,28 +735,3 @@ minetest.register_lbm({ meta:set_string("dye", "unifieddyes:"..color) end }) - -minetest.register_lbm({ - name = "homedecor:recolor_lighting", - label = "Convert some kinds of lights to use UD extended palette", - run_at_every_load = false, - nodenames = { - "homedecor:table_lamp_off", - "homedecor:table_lamp_low", - "homedecor:table_lamp_med", - "homedecor:table_lamp_hi", - "homedecor:table_lamp_max", - "homedecor:standing_lamp_off", - "homedecor:standing_lamp_low", - "homedecor:standing_lamp_med", - "homedecor:standing_lamp_hi", - "homedecor:standing_lamp_max", - }, - action = function(pos, node) - local meta = minetest.get_meta(pos) - if meta:get_string("palette") ~= "ext" then - minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] }) - meta:set_string("palette", "ext") - end - end -}) diff --git a/lavalamp/init.lua b/lavalamp/init.lua index b37f6516..756bf1d3 100644 --- a/lavalamp/init.lua +++ b/lavalamp/init.lua @@ -146,20 +146,3 @@ minetest.register_lbm({ end }) - -minetest.register_lbm({ - name = "lavalamp:recolor", - label = "Convert 89-color lamps to use UD extended palette", - run_at_every_load = false, - nodenames = { - "lavalamp:lavalamp", - "lavalamp:lavalamp_off" - }, - action = function(pos, node) - local meta = minetest.get_meta(pos) - if meta:get_string("palette") ~= "ext" then - minetest.swap_node(pos, { name = node.name, param2 = unifieddyes.convert_classic_palette[node.param2] }) - meta:set_string("palette", "ext") - end - end -})