1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Some work-in-progress stuff and many comment updates

This commit is contained in:
Perttu Ahola 2011-05-22 23:55:02 +03:00
parent e0329a3cae
commit 4a6b9a6ac1
5 changed files with 46 additions and 13 deletions

View file

@ -739,7 +739,7 @@ void ServerEnvironment::step(float dtime)
if(1)
{
MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
if(content_features(n_top.d).walkable == false &&
if(content_features(n_top.d).air_equivalent &&
n_top.getLight(LIGHTBANK_DAY) >= 13)
{
n.d = CONTENT_GRASS;
@ -796,10 +796,10 @@ void ServerEnvironment::step(float dtime)
// Convert mud under proper lighting to grass
if(n.d == CONTENT_MUD)
{
if(myrand()%4 == 0)
if(myrand()%10 == 0)
{
MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
if(content_features(n_top.d).walkable == false &&
if(content_features(n_top.d).air_equivalent &&
n_top.getLightBlend(getDayNightRatio()) >= 13)
{
n.d = CONTENT_GRASS;