Skip to content
Snippets Groups Projects
Commit d763840b authored by Tim's avatar Tim
Browse files

assign custom on_place to the right fence definition, which makes sign posts work again

parent f384d73f
No related branches found
No related tags found
No related merge requests found
......@@ -857,7 +857,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname)
def_sign = signs_lib.table_copy(def_sign)
fences_with_sign[fencename] = fencewithsignname
def.on_place = function(itemstack, placer, pointed_thing, ...)
def_sign.on_place = function(itemstack, placer, pointed_thing, ...)
local node_above = minetest.get_node(pointed_thing.above)
local node_under = minetest.get_node(pointed_thing.under)
local def_above = minetest.registered_nodes[node_above.name]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment