Commit 0144367c authored by LoveEevee's avatar LoveEevee

Fix importing custom songs

parent 7f1bb9d3
......@@ -205,7 +205,7 @@
order: index + 1,
type: "tja",
chart: file,
stars: {},
courses: {},
music: "muted"
}
var coursesAdded = false
......
......@@ -2279,7 +2279,7 @@ class SongSelect{
})
}
this.draw.songFrame(config)
if(config.song.p2Cursor !== null && p2.socket.readyState === 1){
if("p2Cursor" in config.song && config.song.p2Cursor !== null && p2.socket.readyState === 1){
this.draw.diffCursor({
ctx: ctx,
font: this.font,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment