mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
More regular sign placement
This commit is contained in:
parent
6c4ccf3897
commit
7d9aa28054
1 changed files with 10 additions and 2 deletions
|
@ -258,11 +258,19 @@ minetest.register_node("mcl_signs:wall_sign", {
|
|||
return itemstack
|
||||
elseif wdir == 1 then
|
||||
place_pos = above
|
||||
minetest.add_node(place_pos, {name = "mcl_signs:standing_sign", param2 = fdir})
|
||||
local stand = ItemStack(itemstack)
|
||||
stand:set_name("mcl_signs:standing_sign")
|
||||
local _, success = minetest.item_place_node(stand, placer, pointed_thing, fdir)
|
||||
if not success then
|
||||
return itemstack
|
||||
end
|
||||
sign_info = signs_yard[fdir + 1]
|
||||
else
|
||||
place_pos = above
|
||||
minetest.add_node(place_pos, {name = "mcl_signs:wall_sign", param2 = fdir})
|
||||
local _, success = minetest.item_place_node(itemstack, placer, pointed_thing, fdir)
|
||||
if not success then
|
||||
return itemstack
|
||||
end
|
||||
sign_info = signs[fdir + 1]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue