mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
remove debug prints
localized a misc. variable
This commit is contained in:
parent
59ae86ec0f
commit
0e68696566
@ -574,8 +574,6 @@ for _, power in ipairs(lamp_power) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print(dump(homedecor.old_static_nodes))
|
|
||||||
|
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
name = "homedecor:convert_lighting",
|
name = "homedecor:convert_lighting",
|
||||||
label = "Convert homedecor glowlights, table lamps, and standing lamps to use param2 color",
|
label = "Convert homedecor glowlights, table lamps, and standing lamps to use param2 color",
|
||||||
@ -637,6 +635,7 @@ minetest.register_lbm({
|
|||||||
local old_fdir
|
local old_fdir
|
||||||
local new_node = newname
|
local new_node = newname
|
||||||
local new_fdir
|
local new_fdir
|
||||||
|
local param2
|
||||||
|
|
||||||
if string.find(name, "glowlight") then
|
if string.find(name, "glowlight") then
|
||||||
paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
|
paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
|
||||||
@ -661,9 +660,6 @@ minetest.register_lbm({
|
|||||||
param2 = paletteidx
|
param2 = paletteidx
|
||||||
end
|
end
|
||||||
|
|
||||||
print(node.name.." --> "..newname..", "..color.." ("..paletteidx.."), fdir = "..node.param2.." --> "..param2)
|
|
||||||
print("fdir "..dump(old_fdir).." --> "..dump(new_fdir))
|
|
||||||
|
|
||||||
minetest.set_node(pos, { name = new_node, param2 = param2 })
|
minetest.set_node(pos, { name = new_node, param2 = param2 })
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("dye", "unifieddyes:"..color)
|
meta:set_string("dye", "unifieddyes:"..color)
|
||||||
|
@ -98,8 +98,6 @@ for _, color in ipairs(colors) do
|
|||||||
table.insert(lavalamp.old_static_nodes, "lavalamp:"..color.."_off")
|
table.insert(lavalamp.old_static_nodes, "lavalamp:"..color.."_off")
|
||||||
end
|
end
|
||||||
|
|
||||||
print(dump(lavalamp.old_static_nodes))
|
|
||||||
|
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
name = "lavalamp:convert",
|
name = "lavalamp:convert",
|
||||||
label = "Convert lava lamps to use param2 color",
|
label = "Convert lava lamps to use param2 color",
|
||||||
@ -125,7 +123,6 @@ minetest.register_lbm({
|
|||||||
end
|
end
|
||||||
|
|
||||||
local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, false)
|
local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, false)
|
||||||
print("LAVALAMP: "..node.name..", "..color.." ("..paletteidx..")")
|
|
||||||
|
|
||||||
minetest.set_node(pos, { name = "lavalamp:lavalamp", param2 = paletteidx })
|
minetest.set_node(pos, { name = "lavalamp:lavalamp", param2 = paletteidx })
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user