Explorar el Código

Fix the auto-mass setting not having a value at startup

master
Fen Dweller hace 4 años
padre
commit
bd34302fcb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      macrovision.js

+ 2
- 1
macrovision.js Ver fichero

@@ -450,6 +450,7 @@ const config = {
autoFit: false,
drawYAxis: true,
drawXAxis: false,
autoMass: "off",
autoFoodIntake: false,
autoPreyCapacity: false
}
@@ -1206,7 +1207,7 @@ function makeEntity(info, views, sizes, forms = {}) {

view.units = {};

if (config.autoMass && view.attributes.weight === undefined) {
if (config.autoMass !== "off" && view.attributes.weight === undefined) {
let base = undefined;
switch(config.autoMass) {
case "human":


Cargando…
Cancelar
Guardar