diff --git a/init.lua b/init.lua index e429f3b..0d39f6e 100644 --- a/init.lua +++ b/init.lua @@ -1301,9 +1301,9 @@ minetest.register_chatcommand("placeschem", { privs = {server = true}, params = S("[.mts] [-c] [ ]"), func = function(name, param) - local schem, clear, p = string.match(param, "^([^ ]+) (%-c) *(.*)$") + local schem, clear, p = string.match(param, "^([^ ]+) +(%-c) +(.*)$") if not schem then - schem, p = string.match(param, "^([^ ]+) *(.*)$") + schem, p = string.match(param, "^([^ ]+) +(.*)$") end clear = clear == "-c"