From 5103a5e8b82bde9bfe551c6c57ddc8c0a6c7e193 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 19 Dec 2020 01:30:59 +0000 Subject: [PATCH] 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 Co-authored-by: David Leal --- mods/ctf/ctf_map/ctf_map_core/schem_map.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua index 55c3416..4c115d2 100644 --- a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua +++ b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua @@ -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)