adapt style

This commit is contained in:
Isidor Zeuner 2017-06-28 18:39:31 +02:00
parent 9133b486c2
commit b4abfc03c2
1 changed files with 5 additions and 20 deletions

View File

@ -995,10 +995,7 @@ minetest.register_chatcommand("/restore", {
minetest.register_chatcommand("/save", {
params = "<file>",
description = "Save the current WorldEdit region to \"(world folder)/schems/<file>.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 = "<file>",
description = "Set the region defined by nodes from \"(world folder)/schems/<file>.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 = "<file>",
description = "Load nodes from \"(world folder)/schems/<file>[.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 = "<file>",
description = "Save the current WorldEdit region using the Minetest "..
"Schematic format to \"(world folder)/schems/<filename>.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 = "<file>",
description = "Load nodes from \"(world folder)/schems/<file>.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")