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)
This commit is contained in:
Vanessa Ezekowitz 2013-11-27 17:23:15 -05:00
parent 5be4dd2869
commit 91779abef1
1 changed files with 2 additions and 0 deletions

View File

@ -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