diff --git a/mods/ITEMS/signs/init.lua b/mods/ITEMS/signs/init.lua index f4d81e4d0..b269dd7a0 100644 --- a/mods/ITEMS/signs/init.lua +++ b/mods/ITEMS/signs/init.lua @@ -123,18 +123,22 @@ local generate_texture = function(lines) return texture end +local n = 7/16 - 1/128 + local signs = { - {delta = {x = 0, y = 0, z = 0.399}, yaw = 0}, - {delta = {x = 0.399, y = 0, z = 0}, yaw = math.pi / -2}, - {delta = {x = 0, y = 0, z = -0.399}, yaw = math.pi}, - {delta = {x = -0.399, y = 0, z = 0}, yaw = math.pi / 2}, + {delta = {x = 0, y = 0, z = n}, yaw = 0}, + {delta = {x = n, y = 0, z = 0}, yaw = math.pi / -2}, + {delta = {x = 0, y = 0, z = -n}, yaw = math.pi}, + {delta = {x = -n, y = 0, z = 0}, yaw = math.pi / 2}, } +local m = 1/16 + 1/128 + local signs_yard = { - {delta = {x = 0, y = 0, z = -0.05}, yaw = 0}, - {delta = {x = -0.05, y = 0, z = 0}, yaw = math.pi / -2}, - {delta = {x = 0, y = 0, z = 0.05}, yaw = math.pi}, - {delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2}, + {delta = {x = 0, y = 0, z = -m}, yaw = 0}, + {delta = {x = -m, y = 0, z = 0}, yaw = math.pi / -2}, + {delta = {x = 0, y = 0, z = m}, yaw = math.pi}, + {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} @@ -199,8 +203,7 @@ minetest.register_node("signs:sign_wall", { sunlight_propagates = true, paramtype2 = "facedir", drawtype = "nodebox", - node_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}}, - selection_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}}, + 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"}, groups = sign_groups, stack_max = 16, @@ -288,10 +291,11 @@ minetest.register_node("signs:sign_yard", { paramtype2 = "facedir", drawtype = "nodebox", node_box = {type = "fixed", fixed = { - {-0.45, -0.15, -0.049, 0.45, 0.45, 0.049}, - {-0.05, -0.5, -0.049, 0.05, -0.15, 0.049} + {-7/16, -1/16, -1/16, 7/16, 7/16, 0}, + {-1/16, -0.5, -1/16, 1/16, -1/16, 0}, + {-1/16, 7/16, -1/16, 1/16, 0.5, 0}, }}, - selection_box = {type = "fixed", fixed = {-0.45, -0.15, -0.049, 0.45, 0.45, 0.049}}, + selection_box = {type = "fixed", fixed = {-7/16, -0.5, -1/16, 7/16, 0.5, 0}}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, groups = sign_groups, drop = "signs:sign_wall", diff --git a/mods/ITEMS/signs/textures/signs_back.png b/mods/ITEMS/signs/textures/signs_back.png index 229a688e6..56a524723 100644 Binary files a/mods/ITEMS/signs/textures/signs_back.png and b/mods/ITEMS/signs/textures/signs_back.png differ diff --git a/mods/ITEMS/signs/textures/signs_bottom.png b/mods/ITEMS/signs/textures/signs_bottom.png index 30e2233f2..c946af763 100644 Binary files a/mods/ITEMS/signs/textures/signs_bottom.png and b/mods/ITEMS/signs/textures/signs_bottom.png differ diff --git a/mods/ITEMS/signs/textures/signs_front.png b/mods/ITEMS/signs/textures/signs_front.png index 51b242630..0a44a4d50 100644 Binary files a/mods/ITEMS/signs/textures/signs_front.png and b/mods/ITEMS/signs/textures/signs_front.png differ diff --git a/mods/ITEMS/signs/textures/signs_side.png b/mods/ITEMS/signs/textures/signs_side.png index 6eb174b0a..6a103b1f8 100644 Binary files a/mods/ITEMS/signs/textures/signs_side.png and b/mods/ITEMS/signs/textures/signs_side.png differ diff --git a/mods/ITEMS/signs/textures/signs_top.png b/mods/ITEMS/signs/textures/signs_top.png index 937f87080..c946af763 100644 Binary files a/mods/ITEMS/signs/textures/signs_top.png and b/mods/ITEMS/signs/textures/signs_top.png differ