ctf_map: Dofile base.lua only when ctf
exists
This prevents a crash when running in map-maker mode, as base.lua (which is unnecessarily dofile'd) contains code which re-defines `ctf.get_spawn`
This commit is contained in:
parent
f04663fc6c
commit
5e3578ae00
1 changed files with 1 additions and 1 deletions
|
@ -15,9 +15,9 @@ local modpath = minetest.get_modpath("ctf_map")
|
||||||
dofile(modpath .. "/nodes.lua")
|
dofile(modpath .. "/nodes.lua")
|
||||||
dofile(modpath .. "/emerge.lua")
|
dofile(modpath .. "/emerge.lua")
|
||||||
dofile(modpath .. "/barrier.lua")
|
dofile(modpath .. "/barrier.lua")
|
||||||
dofile(modpath .. "/base.lua")
|
|
||||||
|
|
||||||
if minetest.get_modpath("ctf") then
|
if minetest.get_modpath("ctf") then
|
||||||
|
dofile(modpath .. "/base.lua")
|
||||||
dofile(modpath .. "/chest.lua")
|
dofile(modpath .. "/chest.lua")
|
||||||
dofile(modpath .. "/give_initial_stuff.lua")
|
dofile(modpath .. "/give_initial_stuff.lua")
|
||||||
dofile(modpath .. "/schem_map.lua")
|
dofile(modpath .. "/schem_map.lua")
|
||||||
|
|
Loading…
Reference in a new issue