From: Vanessa Dannenberg Date: Wed, 11 Sep 2019 20:21:44 +0000 (-0400) Subject: Fix missing offsets on wallmount selboxes X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fb77cc57081541c395d5782763a5cd53e8f55695;p=signs_lib.git Fix missing offsets on wallmount selboxes --- diff --git a/api.lua b/api.lua index 55aaa64..f42b91b 100644 --- a/api.lua +++ b/api.lua @@ -572,7 +572,7 @@ function signs_lib.make_selection_boxes(sizex, sizey, onpole, xoffs, yoffs, zoff if not fdir then return { type = "wallmounted", - wall_side = { -0.5, -ty, -tx, -0.4375, ty, tx }, + wall_side = { -0.5 + zo, -ty + yo, -tx + xo, -0.4375 + zo, ty + yo, tx + xo }, wall_top = { -tx - xo, 0.5 + zo, -ty + yo, tx - xo, 0.4375 + zo, ty + yo}, wall_bottom = { -tx - xo, -0.5 + zo, -ty + yo, tx - xo, -0.4375 + zo, ty + yo } }