|
@@ -159,7 +159,7 @@ |
|
|
block discarded – undo |
|
159
|
159
|
public function delayTimes($event, $ticks, $limit, callable $listener) |
|
160
|
160
|
{ |
|
161
|
161
|
$counter = 0; |
|
162
|
|
- return $this->times($event, $ticks+$limit-1, function(...$args) use(&$counter, $event, $ticks, $listener) { |
|
|
162
|
+ return $this->times($event, $ticks + $limit - 1, function(...$args) use(&$counter, $event, $ticks, $listener) { |
|
163
|
163
|
if (++$counter >= $ticks) |
|
164
|
164
|
{ |
|
165
|
165
|
$listener(...$args); |
Please login to merge, or discard this patch.