Browse Source

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
```
merge-requests/12/head
Louis Royer 1 month ago
parent
commit
98b281aade
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      homedecor_lighting/init.lua

+ 4
- 4
homedecor_lighting/init.lua 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, {


Loading…
Cancel
Save