Fix /placeschem <name> not working

This commit is contained in:
Wuzzy 2021-04-05 03:05:30 +02:00
parent 35290e7eac
commit d1a35f9a07
1 changed files with 2 additions and 2 deletions

View File

@ -1302,9 +1302,9 @@ minetest.register_chatcommand("placeschem", {
privs = {server = true}, privs = {server = true},
params = S("<schematic name>[.mts] [-c] [<x> <y> <z>]"), params = S("<schematic name>[.mts] [-c] [<x> <y> <z>]"),
func = function(name, param) func = function(name, param)
local schem, clear, p = string.match(param, "^([^ ]+) +(%-c) +(.*)$") local schem, clear, p = string.match(param, "^([^ ]+) +(%-c) *(.*)$")
if not schem then if not schem then
schem, p = string.match(param, "^([^ ]+) +(.*)$") schem, p = string.match(param, "^([^ ]+) *(.*)$")
end end
clear = clear == "-c" clear = clear == "-c"