Skip to content
Snippets Groups Projects
Commit 2c362bad authored by PilzAdam's avatar PilzAdam
Browse files

Dont remove grass under unloaded blocks

parent 6b1420a5
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,8 @@ class RemoveGrassABM : public ActiveBlockModifier
ServerMap *map = &env->getServerMap();
MapNode n_top = map->getNodeNoEx(p+v3s16(0,1,0));
if(!ndef->get(n_top).light_propagates ||
if((!ndef->get(n_top).light_propagates &&
n_top.getContent() != CONTENT_IGNORE) ||
ndef->get(n_top).isLiquid())
{
n.setContent(ndef->getId("mapgen_dirt"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment