From 4733953fb74a899fe366093571dca109b30b9b18 Mon Sep 17 00:00:00 2001 From: mraware Date: Fri, 10 Feb 2023 13:38:22 -0600 Subject: [PATCH] fix template bounds extents when bricks are offset 1/10 --- src/omegga/player.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/omegga/player.ts b/src/omegga/player.ts index 847d13e..0d2894b 100644 --- a/src/omegga/player.ts +++ b/src/omegga/player.ts @@ -680,9 +680,9 @@ class Player implements OmeggaPlayer { const saveData = await this.#omegga.getSaveData({ center: templateBounds.center, extent: [ - (templateBounds.maxBound[0] - templateBounds.minBound[0]) / 2, - (templateBounds.maxBound[1] - templateBounds.minBound[1]) / 2, - (templateBounds.maxBound[2] - templateBounds.minBound[2]) / 2, + Math.round((templateBounds.maxBound[0] - templateBounds.minBound[0]) / 2), + Math.round((templateBounds.maxBound[1] - templateBounds.minBound[1]) / 2), + Math.round((templateBounds.maxBound[2] - templateBounds.minBound[2]) / 2), ], });