1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

fix wrong colorization table usage in table, standing, and desk lamps

This commit is contained in:
Vanessa Dannenberg 2019-06-02 02:45:01 -04:00
parent ab8bf5586f
commit fdb37bdaf5

View File

@ -32,11 +32,12 @@ local brightn_light_source = {
} }
local brightn_hex = { local brightn_hex = {
0xffd0d0d0, ["off"] = 0xffd0d0d0,
0xffd8d8d8, ["low"] = 0xffd8d8d8,
0xffe0e0e0, ["med"] = 0xffe0e0e0,
0xffe8e8e8, ["hi"] = 0xffe8e8e8,
0xffffffff, ["on"] = 0xffffffff,
["max"] = 0xffffffff,
} }
local bright_to_word = { local bright_to_word = {
@ -671,7 +672,7 @@ for light_brightn_name in pairs(brightn_light_source) do
"homedecor_generic_metal.png", "homedecor_generic_metal.png",
"homedecor_generic_metal.png", "homedecor_generic_metal.png",
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey }, { name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
{ name = gen_ls_tex_white, color = brightn_hex[5] }, { name = gen_ls_tex_white, color = brightn_hex[light_brightn_name] },
}, },
inventory_image = "homedecor_desk_lamp_inv.png", inventory_image = "homedecor_desk_lamp_inv.png",
paramtype = "light", paramtype = "light",
@ -836,7 +837,7 @@ for light_brightn_name in pairs(brightn_light_source) do
mesh = "homedecor_table_lamp.obj", mesh = "homedecor_table_lamp.obj",
tiles = { tiles = {
wool_brightened, wool_brightened,
{ name = gen_ls_tex_white, color = brightn_hex[brightness] }, { name = gen_ls_tex_white, color = brightn_hex[light_brightn_name] },
{ name = "homedecor_generic_wood_red.png", color = 0xffffffff }, { name = "homedecor_generic_wood_red.png", color = 0xffffffff },
{ name = "homedecor_generic_metal.png", color = homedecor.color_black }, { name = "homedecor_generic_metal.png", color = homedecor.color_black },
}, },
@ -865,7 +866,7 @@ for light_brightn_name in pairs(brightn_light_source) do
mesh = "homedecor_standing_lamp.obj", mesh = "homedecor_standing_lamp.obj",
tiles = { tiles = {
wool_brightened, wool_brightened,
{ name = gen_ls_tex_white, color = brightn_hex[brightness] }, { name = gen_ls_tex_white, color = brightn_hex[light_brightn_name] },
{ name = "homedecor_generic_wood_red.png", color = 0xffffffff }, { name = "homedecor_generic_wood_red.png", color = 0xffffffff },
{ name = "homedecor_generic_metal.png", color = homedecor.color_black }, { name = "homedecor_generic_metal.png", color = homedecor.color_black },
}, },