summaryrefslogtreecommitdiff
path: root/moreblocks
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-05-22 21:20:46 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-05-22 21:20:46 -0400
commitea9e0c62c9b3c02a3cf31696c567abc879012798 (patch)
tree309a43f3331ce3ee52fa6a6865791b947f79fff7 /moreblocks
parent14117cdce080e1eea630363705c6962f716049fe (diff)
downloaddreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar
dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.gz
dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.bz2
dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.xz
dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.zip
update biome_lib, coloredwood, extra_stairsplus, farming redo,
moreblocks, moretrees, plantlife, and ropes
Diffstat (limited to 'moreblocks')
-rw-r--r--moreblocks/CHANGELOG.md2
-rw-r--r--moreblocks/stairsplus/common.lua3
-rw-r--r--moreblocks/stairsplus/init.lua8
3 files changed, 10 insertions, 3 deletions
diff --git a/moreblocks/CHANGELOG.md b/moreblocks/CHANGELOG.md
index 9c69a0a..6199159 100644
--- a/moreblocks/CHANGELOG.md
+++ b/moreblocks/CHANGELOG.md
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
+- Stairs+ nodes now emit one light level less compared to full nodes to make up
+ for their smaller visual size.
- The minimum supported Minetest version is now 5.0.0.
## [1.3.0] - 2019-03-23
diff --git a/moreblocks/stairsplus/common.lua b/moreblocks/stairsplus/common.lua
index d4cce64..d972808 100644
--- a/moreblocks/stairsplus/common.lua
+++ b/moreblocks/stairsplus/common.lua
@@ -35,6 +35,9 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
-- This makes node rotation work on placement
def.place_param2 = nil
+ -- Darken light sources slightly to make up for their smaller visual size
+ def.light_source = math.max(0, (def.light_source or 0) - 1)
+
def.on_place = minetest.rotate_node
def.groups = stairsplus:prepare_groups(fields.groups)
diff --git a/moreblocks/stairsplus/init.lua b/moreblocks/stairsplus/init.lua
index a3f3399..7f1b995 100644
--- a/moreblocks/stairsplus/init.lua
+++ b/moreblocks/stairsplus/init.lua
@@ -14,8 +14,10 @@ stairsplus.expect_infinite_stacks = false
stairsplus.shapes_list = {}
-if not minetest.get_modpath("unified_inventory")
-and minetest.settings:get_bool("creative_mode") then
+if
+ not minetest.get_modpath("unified_inventory")
+ and minetest.settings:get_bool("creative_mode")
+then
stairsplus.expect_infinite_stacks = true
end
@@ -36,7 +38,7 @@ end
function stairsplus:register_all(modname, subname, recipeitem, fields)
self:register_stair(modname, subname, recipeitem, fields)
- self:register_slab (modname, subname, recipeitem, fields)
+ self:register_slab(modname, subname, recipeitem, fields)
self:register_slope(modname, subname, recipeitem, fields)
self:register_panel(modname, subname, recipeitem, fields)
self:register_micro(modname, subname, recipeitem, fields)