diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 78cba7b..2655cb0 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -995,10 +995,7 @@ minetest.register_chatcommand("/restore", { minetest.register_chatcommand("/save", { params = "", description = "Save the current WorldEdit region to \"(world folder)/schems/.we\"", - privs = { - worldedit=true, - worldedit_global=true, - }, + privs = {worldedit=true, worldedit_global=true}, func = safe_region(function(name, param) if param == "" then worldedit.player_notify(name, "invalid usage: " .. param) @@ -1032,10 +1029,7 @@ minetest.register_chatcommand("/save", { minetest.register_chatcommand("/allocate", { params = "", description = "Set the region defined by nodes from \"(world folder)/schems/.we\" as the current WorldEdit region", - privs = { - worldedit=true, - worldedit_global=true, - }, + privs = {worldedit=true, worldedit_global=true}, func = function(name, param) local pos = get_position(name) if pos == nil then return end @@ -1079,10 +1073,7 @@ minetest.register_chatcommand("/allocate", { minetest.register_chatcommand("/load", { params = "", description = "Load nodes from \"(world folder)/schems/[.we[m]]\" with position 1 of the current WorldEdit region as the origin", - privs = { - worldedit=true, - worldedit_global=true, - }, + privs = {worldedit=true, worldedit_global=true}, func = function(name, param) local pos = get_position(name) if pos == nil then return end @@ -1167,10 +1158,7 @@ minetest.register_chatcommand("/mtschemcreate", { params = "", description = "Save the current WorldEdit region using the Minetest ".. "Schematic format to \"(world folder)/schems/.mts\"", - privs = { - worldedit=true, - worldedit_global=true, - }, + privs = {worldedit=true, worldedit_global=true}, func = safe_region(function(name, param) if param == nil then worldedit.player_notify(name, "No filename specified") @@ -1201,10 +1189,7 @@ minetest.register_chatcommand("/mtschemcreate", { minetest.register_chatcommand("/mtschemplace", { params = "", description = "Load nodes from \"(world folder)/schems/.mts\" with position 1 of the current WorldEdit region as the origin", - privs = { - worldedit=true, - worldedit_global=true, - }, + privs = {worldedit=true, worldedit_global=true}, func = function(name, param) if param == "" then worldedit.player_notify(name, "no filename specified")