aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-12-30 04:22:58 +0000
committerparamat <mat.gregory@virginmedia.com>2016-01-07 05:57:19 +0000
commit0bbbc6e13dc8180cf1d98f9866bc72a510162eb3 (patch)
treeb84bb2078662a03d65f8088cbb8d6be6c3b807db /src/script/common
parentbd40ee2b95138139a8cfbef878b3461176688c15 (diff)
downloadminetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.tar.gz
minetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.tar.bz2
minetest-0bbbc6e13dc8180cf1d98f9866bc72a510162eb3.zip
Liquids: Flow into and destroy 'floodable' nodes
Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua
Diffstat (limited to 'src/script/common')
-rw-r--r--src/script/common/c_content.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index 36a5c2ddd..62de2c968 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -481,6 +481,8 @@ ContentFeatures read_content_features(lua_State *L, int index)
getboolfield(L, index, "climbable", f.climbable);
// Player can build on these
getboolfield(L, index, "buildable_to", f.buildable_to);
+ // Liquids flow into and replace node
+ getboolfield(L, index, "floodable", f.floodable);
// Whether the node is non-liquid, source liquid or flowing liquid
f.liquid_type = (LiquidType)getenumfield(L, index, "liquidtype",
ScriptApiNode::es_LiquidType, LIQUID_NONE);