fix wait notification when stack used
This commit is contained in:
parent
0dd3d6352a
commit
c617d8f92b
|
@ -153,8 +153,8 @@ export async function drawByOffsets(
|
|||
wait += coolDown;
|
||||
if (wait > canvas.cds) {
|
||||
// cooldown stack used
|
||||
coolDown = canvas.cds - wait;
|
||||
wait -= coolDown;
|
||||
coolDown = canvas.cds - wait - coolDown;
|
||||
throw new Error(9);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user