From 2b6a759eac585fbbef651829f9f617026019a726 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Apr 2021 01:14:52 +0200 Subject: [PATCH] Tweak parsing of /placeschem --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"