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

This commit is contained in:
Tim 2015-09-10 09:39:58 +02:00
parent f384d73f70
commit d763840b47

View File

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