mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-23 07:35:16 +02:00
Clean-up
This commit is contained in:
parent
07f08287b3
commit
0824649e2e
1 changed files with 2 additions and 2 deletions
|
@ -83,12 +83,12 @@ local function get_signdata(pos)
|
|||
if def.paramtype2 == "wallmounted" then
|
||||
typ = "wall"
|
||||
local dir = core.wallmounted_to_dir(node.param2)
|
||||
spos = vector.add(vector.offset(pos,0,-0.25,0),dir * 0.41 )
|
||||
spos = vector.add(vector.offset(pos, 0, -0.25, 0), dir * 0.41)
|
||||
yaw = core.dir_to_yaw(dir)
|
||||
else
|
||||
yaw = math.rad(((node.param2 * 1.5 ) + 1 ) % 360)
|
||||
local dir = core.yaw_to_dir(yaw)
|
||||
spos = vector.add(vector.offset(pos,0,0.08,0),dir * -0.05)
|
||||
spos = vector.add(vector.offset(pos, 0, 0.08, 0), dir * -0.05)
|
||||
end
|
||||
if color == "" then color = DEFAULT_COLOR end
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue