diff --git a/src/vendor/factorioSave/factorioSave.go b/src/vendor/factorioSave/factorioSave.go index 236adb0..19e6138 100644 --- a/src/vendor/factorioSave/factorioSave.go +++ b/src/vendor/factorioSave/factorioSave.go @@ -54,6 +54,7 @@ var constraintGreaterThan0_16 *semver.Constraints func ReadHeader(filePath string) (Header, error) { var err error + data = Header{} constraintGreaterThan0_16, _ = semver.NewConstraint(">= 0.16.0") @@ -201,7 +202,6 @@ func ReadHeader(filePath string) (Header, error) { data.Mods = append(data.Mods, SingleMod) } - log.Println(data) return data, nil } diff --git a/ui/App/components/Mods/ModLoadSave.jsx b/ui/App/components/Mods/ModLoadSave.jsx index a83b738..cb6d1bf 100644 --- a/ui/App/components/Mods/ModLoadSave.jsx +++ b/ui/App/components/Mods/ModLoadSave.jsx @@ -44,6 +44,14 @@ class ModLoadSave extends React.Component { checkboxes.push(singleCheckbox); }); + if(checkboxes.length == 0) { + swal({ + title: "No mods in this save!", + type: "error" + }); + return; + } + let table =