From 723b9ce9acbe81f31c2f758a0fa51724c7785bba Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 12 Nov 2022 00:42:47 +0100 Subject: [PATCH] fix pixels being lost on chunk crossings --- src/ui/PixelTransferController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/PixelTransferController.js b/src/ui/PixelTransferController.js index 63c3c428..9e62a7b8 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({