0
0
Fork 0

Make signs attached nodes

This commit is contained in:
Wuzzy 2017-07-25 03:06:25 +02:00
parent 7d9aa28054
commit 8d71f77f8b
5 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ local signs_yard = {
{delta = {x = m, y = 0, z = 0}, yaw = math.pi / 2},
}
local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1, material_wood=1}
local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1, material_wood=1, attached_node=1}
local destruct_sign = function(pos)
local objects = minetest.get_objects_inside_radius(pos, 0.5)
@ -208,10 +208,10 @@ minetest.register_node("mcl_signs:wall_sign", {
node_placement_prediction = "",
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
paramtype2 = "wallmounted",
drawtype = "nodebox",
node_box = {type = "fixed", fixed = {-7/16, -1/16, 7/16, 7/16, 7/16, 0.498}},
tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"},
node_box = {type = "wallmounted", wall_side = {-0.499, -1/16, -7/16, -7/16, 7/16, 7/16}},
tiles = {"signs_wall.png"},
groups = sign_groups,
stack_max = 16,
sounds = mcl_sounds.node_sound_wood_defaults(),
@ -267,7 +267,7 @@ minetest.register_node("mcl_signs:wall_sign", {
sign_info = signs_yard[fdir + 1]
else
place_pos = above
local _, success = minetest.item_place_node(itemstack, placer, pointed_thing, fdir)
local _, success = minetest.item_place_node(itemstack, placer, pointed_thing, wdir)
if not success then
return itemstack
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B