From 2215f9061634002a5455728cf072232380774a2b Mon Sep 17 00:00:00 2001 From: Dimava Date: Fri, 15 Feb 2019 17:10:20 +0300 Subject: [PATCH] Add loader speed change support --- 017_science/data-updates.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/017_science/data-updates.lua b/017_science/data-updates.lua index faa15d2..a460414 100644 --- a/017_science/data-updates.lua +++ b/017_science/data-updates.lua @@ -312,6 +312,11 @@ for _, belt in pairs(data.raw["underground-belt"]) do belt.speed = belt.speed * 45 / 40; end end +for _, belt in pairs(data.raw["loader"]) do + if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then + belt.speed = belt.speed * 45 / 40; + end +end if settings.startup["017-drill"].value then --simplify drill stats @@ -354,4 +359,4 @@ if settings.startup["017-assem-lim"].value then machine.ingredient_count = 10 end end -end \ No newline at end of file +end