diff --git a/mods/mesecons/mesecons_button/init.lua b/mods/mesecons/mesecons_button/init.lua index ead688ee..f147d8f5 100644 --- a/mods/mesecons/mesecons_button/init.lua +++ b/mods/mesecons/mesecons_button/init.lua @@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_on", { paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, - light_source = default.LIGHT_MAX-7, + light_source = LIGHT_MAX-7, sunlight_propagates = true, selection_box = { type = "fixed", diff --git a/mods/mesecons/mesecons_lamp/init.lua b/mods/mesecons/mesecons_lamp/init.lua index e0df9ef5..6cdae2da 100644 --- a/mods/mesecons/mesecons_lamp/init.lua +++ b/mods/mesecons/mesecons_lamp/init.lua @@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { legacy_wallmounted = true, sunlight_propagates = true, walkable = true, - light_source = default.LIGHT_MAX - 1, + light_source = LIGHT_MAX, node_box = mesecon_lamp_box, selection_box = mesecon_lamp_box, groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1}, diff --git a/mods/mesecons/mesecons_lightstone/init.lua b/mods/mesecons/mesecons_lightstone/init.lua index da7cc41e..db34249e 100644 --- a/mods/mesecons/mesecons_lightstone/init.lua +++ b/mods/mesecons/mesecons_lightstone/init.lua @@ -31,7 +31,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on) tiles = {texture_on}, groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2}, drop = "mesecons_lightstone:lightstone_" .. name .. "_off", - light_source = default.LIGHT_MAX-2, + light_source = LIGHT_MAX-2, sounds = default.node_sound_stone_defaults(), mesecons = {effector = { rules = lightstone_rules, diff --git a/mods/mesecons/mesecons_powerplant/init.lua b/mods/mesecons/mesecons_powerplant/init.lua index a5e33272..33cedffc 100644 --- a/mods/mesecons/mesecons_powerplant/init.lua +++ b/mods/mesecons/mesecons_powerplant/init.lua @@ -9,7 +9,7 @@ minetest.register_node("mesecons_powerplant:power_plant", { paramtype = "light", walkable = false, groups = {dig_immediate=3, mesecon = 2}, - light_source = default.LIGHT_MAX-9, + light_source = LIGHT_MAX-9, description="Power Plant", selection_box = { type = "fixed", diff --git a/mods/mesecons/mesecons_pressureplates/init.lua b/mods/mesecons/mesecons_pressureplates/init.lua index 0fda1f3d..b00db9a1 100644 --- a/mods/mesecons/mesecons_pressureplates/init.lua +++ b/mods/mesecons/mesecons_pressureplates/init.lua @@ -22,7 +22,7 @@ pp_on_timer = function (pos, elapsed) if objs[1] == nil and node.name == basename .. "_on" then minetest.add_node(pos, {name = basename .. "_off"}) mesecon.receptor_off(pos, mesecon.rules.pplate) - else + elseif node.name == basename .. "_off" then for k, obj in pairs(objs) do local objpos = obj:getpos() if objpos.y > pos.y-1 and objpos.y < pos.y then diff --git a/mods/mesecons/mesecons_torch/init.lua b/mods/mesecons/mesecons_torch/init.lua index 5d1ad8f0..91f8e65b 100644 --- a/mods/mesecons/mesecons_torch/init.lua +++ b/mods/mesecons/mesecons_torch/init.lua @@ -76,7 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", { paramtype2 = "wallmounted", selection_box = torch_selectionbox, groups = {dig_immediate=3}, - light_source = default.LIGHT_MAX-5, + light_source = LIGHT_MAX-5, description="Mesecon Torch", mesecons = {receptor = { state = mesecon.state.on,