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:
rubenwardy 2020-12-19 01:30:59 +00:00 committed by GitHub
parent b3f4218c15
commit 5103a5e8b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,7 +335,7 @@ local function place_map(map)
local res = minetest.place_schematic(map.pos1, schempath,
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
ctf_map.place_base(value.color, value.pos)