summaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-10-21 08:51:59 +0100
committerparamat <mat.gregory@virginmedia.com>2015-10-23 21:30:20 +0100
commit59fa117d13ba881f6f5e77c94f5a4ce6adb9647f (patch)
tree43c26bb908a117de4471a442626812fea942c3ea /src/mapgen.h
parentc32847838d72c327031520c48b76607b63da4ccc (diff)
downloadminetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.tar.gz
minetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.tar.bz2
minetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.zip
Decoration API: Add flag for placement on liquid surface
Add findLiquidSurface() function to mapgen.cpp Update lua_api.txt
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 4b28ec936..0561ddf98 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -166,6 +166,7 @@ public:
static u32 getBlockSeed2(v3s16 p, int seed);
s16 findGroundLevelFull(v2s16 p2d);
s16 findGroundLevel(v2s16 p2d, s16 ymin, s16 ymax);
+ s16 findLiquidSurface(v2s16 p2d, s16 ymin, s16 ymax);
void updateHeightmap(v3s16 nmin, v3s16 nmax);
void updateLiquid(UniqueQueue<v3s16> *trans_liquid, v3s16 nmin, v3s16 nmax);