diff --git a/mods/ENVIRONMENT/mcl_ambient_light/README.txt b/mods/ENVIRONMENT/mcl_ambient_light/README.txt deleted file mode 100644 index 866e619dc..000000000 --- a/mods/ENVIRONMENT/mcl_ambient_light/README.txt +++ /dev/null @@ -1,7 +0,0 @@ -ambient_light by MikeRedwood -============================ -Makes all nodes lit to a small degree! - -License of source code: ------------------------ -GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 diff --git a/mods/ENVIRONMENT/mcl_ambient_light/init.lua b/mods/ENVIRONMENT/mcl_ambient_light/init.lua index cf1a99e06..34b2d5238 100644 --- a/mods/ENVIRONMENT/mcl_ambient_light/init.lua +++ b/mods/ENVIRONMENT/mcl_ambient_light/init.lua @@ -1,10 +1,9 @@ -local light_min = tonumber(minetest.settings:get("light_min")) or 1 - -minetest.register_on_mods_loaded(function () - for i, def in pairs(minetest.registered_nodes) do - local light_source = def.light_source - if light_source == nil or light_source < light_min then - minetest.override_item(i, { light_source = light_min }) - end - end -end) +minetest.register_on_mods_loaded(function () + local light_min = 1 + for i, def in pairs(minetest.registered_nodes) do + local light_source = def.light_source + if light_source == nil or light_source < light_min then + minetest.override_item(i, { light_source = light_min }) + end + end +end) diff --git a/mods/ENVIRONMENT/mcl_ambient_light/mod.conf b/mods/ENVIRONMENT/mcl_ambient_light/mod.conf index 5b2859ae9..f5e77b563 100644 --- a/mods/ENVIRONMENT/mcl_ambient_light/mod.conf +++ b/mods/ENVIRONMENT/mcl_ambient_light/mod.conf @@ -1,2 +1,3 @@ -name = ambient_light -description = Makes all nodes lit to a small degree! +name = ambient_light +author = MikeRedwood +description = Makes all nodes lit to a small degree! diff --git a/settingtypes.txt b/settingtypes.txt index 1c406f7e7..344afa50a 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -157,13 +157,6 @@ fix_doubleplants (Mcimport double plant fixes) bool true # Allow players to create Minecraft-like maps. enable_real_maps (Enable Real Maps) bool true -# Minimum emissive light level below which the block is made to emit said light level. Defaults to 1 (looks like in MC). -# WARNING! You may have to run fixlight on loaded areas after you remove it or change the light level. -# Will work on all blocks including under ground. -# For debugging mods or exploring underground worlds in creative mod author recommends 9. -# Min 0 and Max 14. -light_min (Minimum light level) int 1 - [Debugging] # If enabled, this will show the itemstring of an item in the description. mcl_item_id_debug (Item ID Debug) bool false \ No newline at end of file