Commit fb73209 1 parent e04b318 commit fb73209 Copy full SHA for fb73209
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " timer" ,
3
- "version" : " 3.0.0 " ,
3
+ "version" : " 3.0.1 " ,
4
4
"title" : " CCTimer" ,
5
5
"description" : " A speedrun timer for CrossCode." ,
6
6
"icons" : {
Original file line number Diff line number Diff line change 7
7
"start" : " esbuild --target=es2018 --format=esm --platform=node --bundle --sourcemap=inline --outfile=plugin.js src/plugin.js" ,
8
8
"watch" : " esbuild --target=es2018 --format=esm --platform=node --bundle --sourcemap=inline --watch --outfile=plugin.js src/plugin.js"
9
9
},
10
- "version" : " 3.0.0 " ,
10
+ "version" : " 3.0.1 " ,
11
11
"ccmodDependencies" : {
12
12
"ccloader" : " ^2.19.0" ,
13
13
"Simplify" : " ^2.9.0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class ConnectionManager {
17
17
}
18
18
19
19
sendStart ( ) {
20
- if ( ! this . livesplit ) {
20
+ if ( ! this . livesplit || ! this . livesplit . writable ) {
21
21
return ;
22
22
}
23
23
@@ -30,7 +30,7 @@ export class ConnectionManager {
30
30
* @param {number } value
31
31
*/
32
32
sendIgt ( value ) {
33
- if ( ! this . livesplit ) {
33
+ if ( ! this . livesplit || ! this . livesplit . writable ) {
34
34
return ;
35
35
}
36
36
@@ -40,7 +40,7 @@ export class ConnectionManager {
40
40
}
41
41
42
42
sendSplit ( ) {
43
- if ( ! this . livesplit ) {
43
+ if ( ! this . livesplit || ! this . livesplit . writable ) {
44
44
console . warn ( '[timer] Could not send split' ) ;
45
45
return ;
46
46
}
@@ -54,7 +54,7 @@ export class ConnectionManager {
54
54
* @param {boolean } paused
55
55
*/
56
56
sendPaused ( paused ) {
57
- if ( ! this . livesplit ) {
57
+ if ( ! this . livesplit || ! this . livesplit . writable ) {
58
58
return ;
59
59
}
60
60
You can’t perform that action at this time.
0 commit comments