diff --git a/worldedit/primitives.lua b/worldedit/primitives.lua index 10832e5..fee1682 100644 --- a/worldedit/primitives.lua +++ b/worldedit/primitives.lua @@ -242,8 +242,8 @@ function worldedit.pyramid(pos, axis, height, node_name, hollow) for index3 = -size, size do local i = new_index2 + (index3 + offset[other2]) * stride[other2] if (not hollow or size - math.abs(index2) < 2 or size - math.abs(index3) < 2) then - data[i] = node_id - count = count + 1 + data[i] = node_id + count = count + 1 end end end diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua index 6279d8a..982081b 100644 --- a/worldedit_gui/functionality.lua +++ b/worldedit_gui/functionality.lua @@ -140,7 +140,7 @@ local function execute_worldedit_command(command_name, player_name, params) assert(chatcmd, "unknown command: " .. command_name) local _, msg = chatcmd.func(player_name, params) if msg then - worldedit.player_notify(player_name, msg) + worldedit.player_notify(player_name, msg) end end diff --git a/worldedit_gui/init.lua b/worldedit_gui/init.lua index 1fae1c8..2f3041d 100644 --- a/worldedit_gui/init.lua +++ b/worldedit_gui/init.lua @@ -4,10 +4,10 @@ worldedit = worldedit or {} Example: worldedit.register_gui_function("worldedit_gui_hollow_cylinder", { - name = "Make Hollow Cylinder", - privs = {worldedit=true}, - get_formspec = function(name) return "some formspec here" end, - on_select = function(name) print(name .. " clicked the button!") end, + name = "Make Hollow Cylinder", + privs = {worldedit=true}, + get_formspec = function(name) return "some formspec here" 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. @@ -35,7 +35,7 @@ end Example: worldedit.register_gui_handler("worldedit_gui_hollow_cylinder", function(name, fields) - print(minetest.serialize(fields)) + print(minetest.serialize(fields)) end) ]]