diff options
author | paramat <paramat@users.noreply.github.com> | 2017-10-09 20:13:10 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-10-10 19:57:28 +0100 |
commit | 9a41a3d0f1b5f2bcd16b61122f6a34434fea7a7d (patch) | |
tree | 666efb4dde4718d93ad13b61b0019eb123b656f7 /src/mg_decoration.h | |
parent | 2cf9014160085303cda333334784ac4938edc086 (diff) | |
download | minetest-9a41a3d0f1b5f2bcd16b61122f6a34434fea7a7d.tar.gz minetest-9a41a3d0f1b5f2bcd16b61122f6a34434fea7a7d.tar.bz2 minetest-9a41a3d0f1b5f2bcd16b61122f6a34434fea7a7d.zip |
Simple decorations: Make 'place_offset_y' usable with simple decorations
Necessary for placing the base cube of 'plantlike_rooted' drawtype in the
seabed instead of on it.
Useful for placing decorations sunk into, or buried in, the ground.
Diffstat (limited to 'src/mg_decoration.h')
-rw-r--r-- | src/mg_decoration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mg_decoration.h b/src/mg_decoration.h index b63e62eff..9295d1a20 100644 --- a/src/mg_decoration.h +++ b/src/mg_decoration.h @@ -69,6 +69,7 @@ public: NoiseParams np; std::vector<content_t> c_spawnby; s16 nspawnby; + s16 place_offset_y = 0; std::unordered_set<u8> biomes; }; @@ -96,7 +97,6 @@ public: virtual int getHeight(); Rotation rotation; - s16 place_offset_y = 0; Schematic *schematic = nullptr; }; |