projects
/
zefram
/
minetest
/
moretrees.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91779ab
)
oops, put that flag in the wrong place
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 27 Nov 2013 22:31:38 +0000
(17:31 -0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Wed, 27 Nov 2013 22:31:38 +0000
(17:31 -0500)
node_defs.lua
patch
|
blob
|
history
diff --git
a/node_defs.lua
b/node_defs.lua
index 1e9bf426518d11712702e95fb139222f7b3e3e95..bcdb9a81943db818492d7551b012f4cdbfb94f20 100644
(file)
--- 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
})