forked from MineClone5/MineClone5
Fix sign text direction on wall signs
This commit is contained in:
parent
77cbe7bcbc
commit
52b1808242
|
@ -260,9 +260,7 @@ minetest.register_node("mcl_signs:wall_sign", {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local dir = {x = under.x - above.x,
|
local dir = vector.subtract(under, above)
|
||||||
y = under.y - above.y,
|
|
||||||
z = under.z - above.z}
|
|
||||||
|
|
||||||
-- Only build when it's legal
|
-- Only build when it's legal
|
||||||
local abovenodedef = minetest.registered_nodes[minetest.get_node(above).name]
|
local abovenodedef = minetest.registered_nodes[minetest.get_node(above).name]
|
||||||
|
@ -273,13 +271,6 @@ minetest.register_node("mcl_signs:wall_sign", {
|
||||||
local wdir = minetest.dir_to_wallmounted(dir)
|
local wdir = minetest.dir_to_wallmounted(dir)
|
||||||
|
|
||||||
local placer_pos = placer:getpos()
|
local placer_pos = placer:getpos()
|
||||||
if placer_pos then
|
|
||||||
dir = {
|
|
||||||
x = above.x - placer_pos.x,
|
|
||||||
y = above.y - placer_pos.y,
|
|
||||||
z = above.z - placer_pos.z
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
local fdir = minetest.dir_to_facedir(dir)
|
local fdir = minetest.dir_to_facedir(dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue