forked from minetest-mods/mesecons
Don't refer to LIGHT_MAX global; use default.
The LIGHT_MAX global is created in the legacy.lua file in the default mod; it states that it's there for backwards compatibility, but it would be better to reference the proper value inside the default table.
This commit is contained in:
@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
||||
legacy_wallmounted = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.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},
|
||||
|
Reference in New Issue
Block a user