1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-11-15 23:20:16 +01:00

Fix tab after space indentations

This commit is contained in:
HybridDog 2021-01-17 14:40:37 +01:00
parent bbc9b2b833
commit 49a92f50c1

View File

@ -4,10 +4,10 @@ worldedit = worldedit or {}
Example: Example:
worldedit.register_gui_function("worldedit_gui_hollow_cylinder", { worldedit.register_gui_function("worldedit_gui_hollow_cylinder", {
name = "Make Hollow Cylinder", name = "Make Hollow Cylinder",
privs = {worldedit=true}, privs = {worldedit=true},
get_formspec = function(name) return "some formspec here" end, get_formspec = function(name) return "some formspec here" end,
on_select = function(name) print(name .. " clicked the button!") end, on_select = function(name) print(name .. " clicked the button!") end,
}) })
Use `nil` for the `options` parameter to unregister the function associated with the given identifier. Use `nil` for the `options` parameter to unregister the function associated with the given identifier.
@ -35,7 +35,7 @@ end
Example: Example:
worldedit.register_gui_handler("worldedit_gui_hollow_cylinder", function(name, fields) worldedit.register_gui_handler("worldedit_gui_hollow_cylinder", function(name, fields)
print(minetest.serialize(fields)) print(minetest.serialize(fields))
end) end)
]] ]]