summaryrefslogtreecommitdiff
path: root/src/scriptapi.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-25 17:00:50 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:51 +0200
commite5650bb54917ead2dccac9b46dfa1a00cd737694 (patch)
treec1cfda62fa6df17069f368f3b07fad11eb3d3a04 /src/scriptapi.cpp
parent18bb0ea1ead82406bcfb89ea14908a4d0063209e (diff)
downloadminetest-e5650bb54917ead2dccac9b46dfa1a00cd737694.tar.gz
minetest-e5650bb54917ead2dccac9b46dfa1a00cd737694.tar.bz2
minetest-e5650bb54917ead2dccac9b46dfa1a00cd737694.zip
Make liquid_alternative_* to be strings
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r--src/scriptapi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index f19e98893..6f16c72e7 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -609,11 +609,11 @@ static int l_register_node(lua_State *L)
f.liquid_type = (LiquidType)getenumfield(L, table0, "liquidtype",
es_LiquidType, LIQUID_NONE);
// If the content is liquid, this is the flowing version of the liquid.
- // TODO: as name
- // content_t liquid_alternative_flowing;
+ getstringfield(L, table0, "liquid_alternative_flowing",
+ f.liquid_alternative_flowing);
// If the content is liquid, this is the source version of the liquid.
- // TODO: as name
- // content_t liquid_alternative_source;
+ getstringfield(L, table0, "liquid_alternative_source",
+ f.liquid_alternative_source);
// Viscosity for fluid flow, ranging from 1 to 7, with
// 1 giving almost instantaneous propagation and 7 being
// the slowest possible