mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 08:00: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
|
||||
|
||||
print(dump(homedecor.old_static_nodes))
|
||||
|
||||
minetest.register_lbm({
|
||||
name = "homedecor:convert_lighting",
|
||||
label = "Convert homedecor glowlights, table lamps, and standing lamps to use param2 color",
|
||||
@ -637,6 +635,7 @@ minetest.register_lbm({
|
||||
local old_fdir
|
||||
local new_node = newname
|
||||
local new_fdir
|
||||
local param2
|
||||
|
||||
if string.find(name, "glowlight") then
|
||||
paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
|
||||
@ -661,9 +660,6 @@ minetest.register_lbm({
|
||||
param2 = paletteidx
|
||||
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 })
|
||||
local meta = minetest.get_meta(pos)
|
||||
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")
|
||||
end
|
||||
|
||||
print(dump(lavalamp.old_static_nodes))
|
||||
|
||||
minetest.register_lbm({
|
||||
name = "lavalamp:convert",
|
||||
label = "Convert lava lamps to use param2 color",
|
||||
@ -125,7 +123,6 @@ minetest.register_lbm({
|
||||
end
|
||||
|
||||
local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, false)
|
||||
print("LAVALAMP: "..node.name..", "..color.." ("..paletteidx..")")
|
||||
|
||||
minetest.set_node(pos, { name = "lavalamp:lavalamp", param2 = paletteidx })
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
Loading…
Reference in New Issue
Block a user