From 0bbbc6e13dc8180cf1d98f9866bc72a510162eb3 Mon Sep 17 00:00:00 2001 From: paramat Date: Wed, 30 Dec 2015 04:22:58 +0000 Subject: Liquids: Flow into and destroy 'floodable' nodes Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua --- src/script/common/c_content.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/script/common') 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); -- cgit v1.2.3