Merge pull request #2 from Dimava/patch-2

Add loader speed change support
This commit is contained in:
Peter 2019-02-16 11:41:24 +08:00 committed by GitHub
commit 571ef65a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
end