Skip to content

Commit

Permalink
Fix storageGen.lua (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan18 authored Jul 1, 2022
1 parent 1d2187b commit af570c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions milo/autorun/milo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fs.delete('packages/milo/Milo.lua')
fs.delete('packages/milo/plugins/listing.lua')
fs.delete('packages/milo/apis/milo.lua')
fs.delete('packages/milo/plugins/manipulator.lua')
fs.delete('packages/milo/apps')

if peripheral.find('workbench') and shell.openForegroundTab then
shell.openForegroundTab('MiloLocal')
Expand Down
2 changes: 1 addition & 1 deletion milo/apps/storageGen.lua → milo/storageGen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end
function page:saveConfig(path)
local config = Util.readTable(path) or {}
Util.each(self.storages, function(dev, name)
if self.typeGrid.values[dev.type] and self.typeGrid.values[dev.type].checked and not config[name] then
if self.typeGrid.values[dev.type] and self.typeGrid.values[dev.type].checked and (not config[name] or config[name].mtype == 'ignore') then
config[name] = {
name = name,
category = 'storage',
Expand Down

0 comments on commit af570c7

Please sign in to comment.