Merge pull request #6837 from VOREStation/aro-juke

Fix hook "failing" when no file
This commit is contained in:
Novacat
2020-03-12 14:27:05 -04:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ var/global/list/all_lobby_tracks = list()
var/jukebox_track_file = "config/jukebox.json"
if(!fexists(jukebox_track_file))
warning("File not found: [jukebox_track_file]")
return
return 1
var/list/jsonData = json_decode(file2text(jukebox_track_file))
if(!istype(jsonData))
warning("Failed to read tracks from [jukebox_track_file], json_decode failed.")