This commit is contained in:
2024-10-08 13:30:44 +09:00
parent cd9a60c453
commit 2af9126745
5 changed files with 35 additions and 6 deletions

View File

@@ -87,12 +87,23 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-PIPE'].value th
for _, t in pairs({data.raw['pipe'], data.raw['pipe-to-ground']}) do
for _, v in pairs(t) do
v.fluid_box.height = v.fluid_box.height * s
if v.fluid_box.height then
v.fluid_box.height = v.fluid_box.height * s
else
v.fluid_box.height = s
end
end
end
for _, v in pairs(data.raw['pump']) do
v.fluid_box.height = v.fluid_box.height * s
if v.fluid_box.height then
v.fluid_box.height = v.fluid_box.height * s
else
v.fluid_box.height = s
end
v.pumping_speed = v.pumping_speed * s
end
end