From 128413ca04c9067810b5c80b9170882493419d42 Mon Sep 17 00:00:00 2001 From: JPG Date: Fri, 16 Dec 2016 03:33:07 +0100 Subject: [PATCH] Correctly place a label --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 30e9d85..55e4d1e 100644 --- a/init.lua +++ b/init.lua @@ -142,7 +142,8 @@ function craftguide:get_formspec(player_name, no_recipe_update) minetest.formspec_escape(data.filter).."]" if not next(data.items) then - formspec = formspec.."label["..(xoffset-1)..".9,2;No item to show]" + formspec = formspec.."label["..(xoffset - + (iX%2 == 0 and 1.5 or 1))..",2;No item to show]" end local first_item = (data.pagenum - 1) * ipp