Fix hook "failing" when no file

It hasn't failed, really. And it prints another warning anyway.
This commit is contained in:
Arokha Sieyes
2020-03-12 14:12:17 -04:00
parent 78e6fa891a
commit 775ea3a958

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.")