Give user pixel back after they undo (fixes #77)

This commit is contained in:
Grant 2024-07-12 03:21:53 -06:00
parent 217953af35
commit f1e07bfb90
1 changed files with 3 additions and 0 deletions

View File

@ -379,6 +379,9 @@ export class SocketServer {
// mark the undo as used // mark the undo as used
await user.setUndo(); await user.setUndo();
// give user pixel back
await user.modifyStack(1);
// trigger re-cache on redis // trigger re-cache on redis
await Canvas.refreshPixel(pixel.x, pixel.y); await Canvas.refreshPixel(pixel.x, pixel.y);