Add message to assertion in schem_map (#722)
* Add message to assertion in schem_map * Update mods/ctf/ctf_map/ctf_map_core/schem_map.lua Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
b3f4218c15
commit
5103a5e8b8
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ local function place_map(map)
|
||||||
local res = minetest.place_schematic(map.pos1, schempath,
|
local res = minetest.place_schematic(map.pos1, schempath,
|
||||||
map.rotation == "z" and "0" or "90")
|
map.rotation == "z" and "0" or "90")
|
||||||
|
|
||||||
assert(res)
|
assert(res, "Unable to place schematic, does the MTS file exist? Path: " .. schempath)
|
||||||
|
|
||||||
for _, value in pairs(ctf_map.map.teams) do
|
for _, value in pairs(ctf_map.map.teams) do
|
||||||
ctf_map.place_base(value.color, value.pos)
|
ctf_map.place_base(value.color, value.pos)
|
||||||
|
|
Loading…
Reference in a new issue