From dfde5f5771d5e0c45af090a9978e521900cc23ef Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 15 Sep 2020 11:08:22 -0400 Subject: [PATCH] Fix the world y-position not updating after zooming with the y-axis lock disabled --- macrovision.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macrovision.js b/macrovision.js index cdd21ed7..fe85a478 100644 --- a/macrovision.js +++ b/macrovision.js @@ -2759,12 +2759,12 @@ document.addEventListener("DOMContentLoaded", () => { } else { const dir = e.deltaY < 0 ? 10 / 11 : 11 / 10; const change = config.height.toNumber("meters") - math.multiply(config.height, dir).toNumber("meters"); - setWorldHeight(config.height, math.multiply(config.height, dir)); - updateWorldOptions(); - if (!config.lockYAxis) { config.y += change / 2; } + setWorldHeight(config.height, math.multiply(config.height, dir)); + updateWorldOptions(); + } }