1
0
forked from MTSR/moreblocks

Make Stairs+ nodes emit slightly less light compared to full nodes

This makes up for their smaller visual size.
This commit is contained in:
Hugo Locurcio 2019-05-08 20:00:15 +02:00
parent f7ff9644c9
commit 72a6ee6032
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
3 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -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