diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-03 17:33:13 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-03 17:33:13 +0300 |
commit | 821d5bb4cc3a9047187955ab897ea28f9b9aa957 (patch) | |
tree | f61d8447b1a78a489ad4b756aa895cd36741ff9b /src/mapnode.h | |
parent | 1c08b6c99a88065b30baaba87677f6a334421df6 (diff) | |
download | minetest-821d5bb4cc3a9047187955ab897ea28f9b9aa957.tar.gz minetest-821d5bb4cc3a9047187955ab897ea28f9b9aa957.tar.bz2 minetest-821d5bb4cc3a9047187955ab897ea28f9b9aa957.zip |
Hopefully fixed the bug of huge mineral deposits rarely in seafloor sand
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index ef1ec8ae3..d456cf883 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -513,7 +513,7 @@ struct MapNode // Select the brightest of [light source, propagated light] u8 lightday = 0; u8 lightnight = 0; - if(light_propagates()) + if(content_features(d).param_type == CPT_LIGHT) { lightday = param & 0x0f; lightnight = (param>>4)&0x0f; @@ -534,7 +534,7 @@ struct MapNode { // Select the brightest of [light source, propagated light] u8 light = 0; - if(light_propagates()) + if(content_features(d).param_type == CPT_LIGHT) { if(bank == LIGHTBANK_DAY) light = param & 0x0f; @@ -576,8 +576,8 @@ struct MapNode void setLight(enum LightBank bank, u8 a_light) { - // If not transparent, can't set light - if(light_propagates() == false) + // If node doesn't contain light data, ignore this + if(content_features(d).param_type != CPT_LIGHT) return; if(bank == LIGHTBANK_DAY) { |