1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 15:48:31 +01:00

Fix minetest warnings from homedecor_lighting

```
Undeclared global variable "mesecon" accessed at ...etest/mods/homedecor_modpack/homedecor_lighting/init.lua:852
Undeclared global variable "mesecon" accessed at ...etest/mods/homedecor_modpack/homedecor_lighting/init.lua:898
```
This commit is contained in:
Louis Royer 2020-08-05 16:10:33 +02:00
parent 1090c9139c
commit 98b281aade

View File

@ -847,14 +847,14 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
}
},
on_rightclick = on_rc,
mesecons = {
mesecons = hd_mesecons and {
conductor = {
state = mesecon and (onflag and mesecon.state.on or mesecon.state.off),
onstate = "homedecor:rope_light_on_floor_on",
offstate = "homedecor:rope_light_on_floor_off",
rules = rules_alldir
},
}
} or nil,
})
minetest.register_node(":homedecor:rope_light_on_ceiling_"..light_brightn_name, {
@ -893,14 +893,14 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
}
},
on_rightclick = on_rc,
mesecons = {
mesecons = hd_mesecons and {
conductor = {
state = mesecon and (onflag and mesecon.state.on or mesecon.state.off),
onstate = "homedecor:rope_light_on_ceiling_on",
offstate = "homedecor:rope_light_on_ceiling_off",
rules = rules_alldir
},
}
} or nil,
})
homedecor.register("wall_lamp_"..light_brightn_name, {