aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <PilzAdam@gmx.de>2013-01-20 16:21:09 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-02-10 12:52:59 +0100
commit2c362badd401dc16d32b543ed15bfcad44f9163b (patch)
treec0ee2bc2c0c9e6651ef180b67282400754931e55
parent6b1420a58af7472880bebb9d0f89be987bc25da1 (diff)
downloadminetest-2c362badd401dc16d32b543ed15bfcad44f9163b.tar.gz
minetest-2c362badd401dc16d32b543ed15bfcad44f9163b.tar.bz2
minetest-2c362badd401dc16d32b543ed15bfcad44f9163b.zip
Dont remove grass under unloaded blocks
-rw-r--r--src/content_abm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content_abm.cpp b/src/content_abm.cpp
index 9e65a7ab0..ce1751117 100644
--- a/src/content_abm.cpp
+++ b/src/content_abm.cpp
@@ -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"));