summaryrefslogtreecommitdiff
path: root/worldedit_gui/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_gui/init.lua')
-rw-r--r--worldedit_gui/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/worldedit_gui/init.lua b/worldedit_gui/init.lua
index 8e3b352..abcc134 100644
--- a/worldedit_gui/init.lua
+++ b/worldedit_gui/init.lua
@@ -1,4 +1,3 @@
---wip: make back buttons images in all screens
--wip: support unified_inventory, it even seems to have some sort of API now
--wip: make it look good with image buttons and stuff
@@ -114,6 +113,9 @@ worldedit.register_gui_function("worldedit_gui", {
end
end
end
+ if index == 0 then --empty row
+ y = y - height
+ end
return string.format("size[%g,%g]", math.max(columns * width, 5), math.max(y + 0.5, 3)) ..
(inventory_plus and "button[0,0;2,0.5;main;Back]" or "button_exit[0,0;2,0.5;main;Exit]") ..
"label[2,0;WorldEdit GUI]" ..