mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Dont remove grass under unloaded blocks
This commit is contained in:
parent
6b1420a58a
commit
2c362badd4
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ public:
|
|||
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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue