mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-08 17:10:32 +01:00
Fix /placeschem <name> not working
This commit is contained in:
parent
35290e7eac
commit
d1a35f9a07
4
init.lua
4
init.lua
@ -1302,9 +1302,9 @@ minetest.register_chatcommand("placeschem", {
|
||||
privs = {server = true},
|
||||
params = S("<schematic name>[.mts] [-c] [<x> <y> <z>]"),
|
||||
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user