From 4b8bbf2716fb045d5de1a73972fd0a28725cdd90 Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 13 Jan 2020 04:35:46 +0100 Subject: [PATCH] fix incremential tile creation when protected pixels got set --- src/core/tilesBackup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tilesBackup.js b/src/core/tilesBackup.js index 0062b20..dd8638c 100644 --- a/src/core/tilesBackup.js +++ b/src/core/tilesBackup.js @@ -112,7 +112,7 @@ export async function incrementialBackupRedis( if (!tileBuffer) { tileBuffer = new Uint32Array(TILE_SIZE * TILE_SIZE); } - const color = palette.abgr[curChunk[pxl]]; + const color = palette.abgr[curChunk[pxl] & 0x1F]; tileBuffer[pxl] = color; } pxl += 1;