summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
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