add default z value for canvas screenshots

This commit is contained in:
HF 2023-06-05 02:06:01 +02:00
parent b80cf737f9
commit 986e0b5d76
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ export async function parseCanvasLinks(text) {
}
lastParse = curTime;
lastCoords = coordsParts;
const [ canvasIdent, x, y, z ] = coordsParts;
const [ canvasIdent, x, y ] = coordsParts;
const z = coordsParts[3] || 16;
const canvas = canvases.get(canvasIdent);
const upperBound = canvas.size / 2 - 1;