Skip to content

Commit 6338775

Browse files
committed
Fix modules not being multiplied by the machine count
1 parent 275a452 commit 6338775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mods/factoryplanner-is-exportable-to-fake-factorissimo/control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ script.on_event(defines.events.on_gui_click, function(event)
218218
if module_button.sprite ~= "utility/add" then
219219
local module_class, module_name = split_class_and_name(module_button.sprite)
220220
-- table.insert(modules, {type = module_class, name = module_name, amount = module_button.number})
221-
merge_ingredients(clipboard.buildings, {type = module_class, name = module_name, amount = module_button.number})
221+
merge_ingredients(clipboard.buildings, {type = module_class, name = module_name, amount = module_button.number * machine_count})
222222
end
223223
end
224224

mods/factoryplanner-is-exportable-to-fake-factorissimo/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "factoryplanner-is-exportable-to-fake-factorissimo",
33
"title": "Factory Planner - exportable to fake factorissimo",
44
"description": "Skips the building stage, just feed items into the magic box.",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"author": "Quezler",
77
"factorio_version": "1.1",
88
"dependencies": [

0 commit comments

Comments
 (0)