diff --git a/src/ui/PixelTransferController.js b/src/ui/PixelTransferController.js index 63c3c42..9e62a7b 100644 --- a/src/ui/PixelTransferController.js +++ b/src/ui/PixelTransferController.js @@ -207,7 +207,7 @@ class PixelTransferController { p += 1; } - this.clientPredictions = []; + this.clientPredictions.splice(p); } /* @@ -260,8 +260,8 @@ class PixelTransferController { if (i === lastI && j === lastJ) { /* append to last request in queue if same chunk */ lastReq.pixels.push([offset, color]); + return; } - return; } pixelQueue.push({