Fixed AssetViewer crashing when loading a scripted asset

This commit is contained in:
2021-04-25 23:22:01 +00:00
parent c5e0f33f21
commit 15ba3fb15b
7 changed files with 117 additions and 40 deletions

View File

@@ -7,6 +7,8 @@ class IMICFPS
subtitle "Choose a Map"
Dir.glob("#{GAME_ROOT_PATH}/maps/*.json").map { |file| [file, MapParser.new(map_file: file)] }.each do |file, map|
next unless map.metadata.gamemode
link map.metadata.name do
push_state(
LoadingState.new(forward: Game, map_file: file)