Give user pixel back after they undo (fixes #77)
This commit is contained in:
parent
217953af35
commit
f1e07bfb90
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue