mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fixed #21 Earth under torches oscillates between mud and grass
This commit is contained in:
parent
0b4cdfa023
commit
26582e0e66
@ -863,7 +863,7 @@ void ServerEnvironment::step(float dtime)
|
|||||||
{
|
{
|
||||||
if(myrand()%20 == 0)
|
if(myrand()%20 == 0)
|
||||||
{
|
{
|
||||||
MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
|
MapNode n_top = m_map->getNodeNoEx(p+v3s16(0,1,0));
|
||||||
if(content_features(n_top).air_equivalent &&
|
if(content_features(n_top).air_equivalent &&
|
||||||
n_top.getLightBlend(getDayNightRatio()) >= 13)
|
n_top.getLightBlend(getDayNightRatio()) >= 13)
|
||||||
{
|
{
|
||||||
@ -879,9 +879,8 @@ void ServerEnvironment::step(float dtime)
|
|||||||
{
|
{
|
||||||
//if(myrand()%20 == 0)
|
//if(myrand()%20 == 0)
|
||||||
{
|
{
|
||||||
MapNode n_top = block->getNodeNoEx(p0+v3s16(0,1,0));
|
MapNode n_top = m_map->getNodeNoEx(p+v3s16(0,1,0));
|
||||||
if(n_top.getContent() != CONTENT_AIR
|
if(content_features(n_top).air_equivalent == false)
|
||||||
&& n_top.getContent() != CONTENT_IGNORE)
|
|
||||||
{
|
{
|
||||||
n.setContent(CONTENT_MUD);
|
n.setContent(CONTENT_MUD);
|
||||||
m_map->addNodeWithEvent(p, n);
|
m_map->addNodeWithEvent(p, n);
|
||||||
|
Loading…
Reference in New Issue
Block a user