From d1a35f9a079345e5bf694cb1d05c04fd0dd03a63 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Apr 2021 03:05:30 +0200 Subject: [PATCH] Fix /placeschem not working --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 9c15202..35b2f60 100644 --- a/init.lua +++ b/init.lua @@ -1302,9 +1302,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"