mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +01:00
Correctly place a label
This commit is contained in:
parent
298397e7dd
commit
128413ca04
3
init.lua
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user