summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-27 17:23:15 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-27 17:23:15 -0500
commit91779abef1baaaf6978499dca202ec9426681f3c (patch)
tree479b25b634967d39f1aa6f674671fce44df92607 /node_defs.lua
parent5be4dd2869afa1a60355b7a7586377e654ae1a09 (diff)
Add a metadata flag that's set when an empty rubber tree is placed in
the world (keeps it from regrowing into a full one)
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/node_defs.lua b/node_defs.lua
index d9e0479..1e9bf42 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -451,6 +451,8 @@ minetest.register_node("moretrees:rubber_tree_trunk_empty", {
if not moretrees:node_is_owned(pos, placer) then
minetest.rotate_and_place(itemstack, placer, pointed_thing,
moretrees.expect_infinite_stacks, { invert_wall = keys.sneak })
+ local meta = minetest.get_meta(pos)
+ meta:set_int("placed", 1)
end
return itemstack
end