Skip to content

Commit d6de9a5

Browse files
committed
fix error when updating any mod
min Factorio 0.12.12
1 parent 20450e3 commit d6de9a5

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

control.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ end
325325

326326
-- run once
327327
local function on_configuration_changed(data)
328-
getMetaItemData()
329328
if not data or not data.mod_changes then
330329
return
331330
end
@@ -337,6 +336,7 @@ local function on_configuration_changed(data)
337336
init_global()
338337
init_forces()
339338
init_players()
339+
update_gui()
340340
else
341341
if oldVersion < "0.1.3" then
342342
init_global()
@@ -347,6 +347,7 @@ local function on_configuration_changed(data)
347347
-- update/change gui for all players via game.players.gui ?
348348
end
349349
end
350+
getMetaItemData()
350351
remove_invalid_items()
351352
--check for other mods
352353
end
@@ -548,5 +549,6 @@ remote.add_interface("mi",
548549
init = function()
549550
init_global()
550551
init_players()
552+
update_gui()
551553
end
552554
})

info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "ModuleInserter",
3-
"version": "0.1.3",
3+
"version": "0.1.31",
44
"title": "Module Inserter",
55
"author": "Choumiko",
66
"homepage": "",
7-
"dependencies": ["base >= 0.12.11"],
7+
"dependencies": ["base >= 0.12.12"],
88
"description": "Mass insert modules into machines with pocket bots"
99
}

0 commit comments

Comments
 (0)