mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Fixed AssetViewer crashing when loading a scripted asset
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user