File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ local CURRENT_MAP_VERSION = "3"
2
2
3
3
local modname = minetest .get_current_modname ()
4
4
5
+ local IS_RUNTIME = true
6
+ minetest .after (0 , function ()
7
+ IS_RUNTIME = false
8
+ end )
9
+
5
10
function ctf_map .skybox_exists (subdir )
6
11
local list = minetest .get_dir_list (subdir , true )
7
12
@@ -188,8 +193,8 @@ function ctf_map.load_map_meta(idx, dirname)
188
193
if core .features .dynamic_add_media_startup then
189
194
minetest .dynamic_add_media ({
190
195
filename = dirname .. " _" .. e ,
191
- filepath = ctf_map .map_path [dirname ] .. " /" .. e }
192
- )
196
+ filepath = ctf_map .map_path [dirname ] .. " /" .. e
197
+ }, not IS_RUNTIME and function () end or nil )
193
198
end
194
199
end
195
200
end
@@ -202,8 +207,8 @@ function ctf_map.load_map_meta(idx, dirname)
202
207
if core .features .dynamic_add_media_startup then
203
208
minetest .dynamic_add_media ({
204
209
filename = dirname .. e ,
205
- filepath = ctf_map .map_path [dirname ] .. " /skybox/" .. e }
206
- )
210
+ filepath = ctf_map .map_path [dirname ] .. " /skybox/" .. e
211
+ }, not IS_RUNTIME and function () end or nil )
207
212
end
208
213
end
209
214
end
You can’t perform that action at this time.
0 commit comments