From 70515a0047b7c4fd491b02da247ea2c03c88f1e1 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 11 Feb 2020 11:52:41 -0500 Subject: [PATCH] Fix scrolling putting the world height in meters into the world height box It should put the height in the currently chosen unit into the input box --- macrovision.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macrovision.js b/macrovision.js index 4ffe8b0c..66441074 100644 --- a/macrovision.js +++ b/macrovision.js @@ -304,9 +304,9 @@ function updateWorldOptions(entity, view) { const heightInput = document.querySelector("#options-height-value"); const heightSelect = document.querySelector("#options-height-unit"); - const converted = config.height.to(heightSelect.value); + const converted = config.height.toNumber(heightSelect.value); - heightInput.value = math.round(converted.value, 3); + heightInput.value = math.round(converted, 3); } function configEntityOptions(entity, view) { const holder = document.querySelector("#options-entity");