mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Update screenshot_exporter.js
This commit is contained in:
parent
1b85c32b3b
commit
889e22ea69
@ -60,7 +60,7 @@ export class HUDScreenshotExporter extends BaseHUDPart {
|
|||||||
const maxDimensions = Math.max(dimensions.x, dimensions.y);
|
const maxDimensions = Math.max(dimensions.x, dimensions.y);
|
||||||
|
|
||||||
if (maxDimensions > 128) {
|
if (maxDimensions > 128) {
|
||||||
chunkSizePixels = Math.floor(128 * (128 / Math.max(dimensions.x, dimensions.y)));
|
chunkSizePixels = Math.floor(128 * (128 / maxDimensions));
|
||||||
}
|
}
|
||||||
logger.log("ChunkSizePixels:", chunkSizePixels);
|
logger.log("ChunkSizePixels:", chunkSizePixels);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user