diff --git a/packages/server/src/lib/SocketServer.ts b/packages/server/src/lib/SocketServer.ts index 18cac90..be74daf 100644 --- a/packages/server/src/lib/SocketServer.ts +++ b/packages/server/src/lib/SocketServer.ts @@ -379,6 +379,9 @@ export class SocketServer { // mark the undo as used await user.setUndo(); + // give user pixel back + await user.modifyStack(1); + // trigger re-cache on redis await Canvas.refreshPixel(pixel.x, pixel.y);