forked from mtcontrib/homedecor_modpack
assign custom on_place to the right fence definition, which makes sign posts work again
This commit is contained in:
parent
f384d73f70
commit
d763840b47
@ -857,7 +857,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname)
|
|||||||
def_sign = signs_lib.table_copy(def_sign)
|
def_sign = signs_lib.table_copy(def_sign)
|
||||||
fences_with_sign[fencename] = fencewithsignname
|
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_above = minetest.get_node(pointed_thing.above)
|
||||||
local node_under = minetest.get_node(pointed_thing.under)
|
local node_under = minetest.get_node(pointed_thing.under)
|
||||||
local def_above = minetest.registered_nodes[node_above.name]
|
local def_above = minetest.registered_nodes[node_above.name]
|
||||||
|
Loading…
Reference in New Issue
Block a user