summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-27 17:31:38 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-27 17:31:38 -0500
commitdee888f7a8f083a0bb694019a43cd9d1befd312f (patch)
tree43e6a5d70beb2a962fb5cda8ab4c72c0931e8872 /node_defs.lua
parent91779abef1baaaf6978499dca202ec9426681f3c (diff)
oops, put that flag in the wrong place
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/node_defs.lua b/node_defs.lua
index 1e9bf42..bcdb9a8 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -451,10 +451,12 @@ 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,
+ after_place_node = function(pos, placer, itemstack),
+ local meta = minetest.get_meta(pos)
+ meta:set_int("placed", 1)
end
})