Skip to content

Commit a7c11f3

Browse files
committed
fix time reset bug in rentnerend
1 parent 7eef80c commit a7c11f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rentnerend/lib/md.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ class Matchday with _$Matchday {
169169
// Time can be positive or negative
170170
Matchday timeReset({final void Function(MessageType, {Matchday? md})? send = null}) {
171171
if (currentGamepart == null) return this;
172-
int? defTime = currentGamepart!.whenOrNull(timed: (_, len, _, _, _) => len);
172+
int? defTime = currentGamepart!.whenOrNull(
173+
timed: (_, len, _, _, _) => len,
174+
pause_timed: (_, len, _, _, _) => len
175+
);
173176
if (defTime == null) return this;
174177
return timeChange(defTime - currentTime(), send: send);
175178
}

0 commit comments

Comments
 (0)