Parcourir la source

Fix incorrect world height when not using metric and loading from a permalink

master
Fen Dweller il y a 5 ans
Parent
révision
1f83752a3e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      macrovision.js

+ 2
- 1
macrovision.js Voir le fichier

@@ -2747,7 +2747,8 @@ document.addEventListener("DOMContentLoaded", () => {
prepareSettings(getUserSettings()); prepareSettings(getUserSettings());


// now that we have this loaded, we can set it // now that we have this loaded, we can set it

document.querySelector("#options-height-unit").setAttribute("oldUnit", defaultUnits.length[config.units]);
document.querySelector("#options-height-unit").value = defaultUnits.length[config.units]; document.querySelector("#options-height-unit").value = defaultUnits.length[config.units];


// ...and then update the world height by setting off an input event // ...and then update the world height by setting off an input event


Chargement…
Annuler
Enregistrer