Преглед изворни кода

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

master
Fen Dweller пре 4 година
родитељ
комит
bd34302fcb
1 измењених фајлова са 2 додато и 1 уклоњено
  1. +2
    -1
      macrovision.js

+ 2
- 1
macrovision.js Прегледај датотеку

@@ -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":


Loading…
Откажи
Сачувај