Fixed stored energy truncation in transporter LUA scripts for CC & OC

This commit is contained in:
Unknown 2020-05-08 01:40:25 +02:00 committed by unknown
parent 09fc2300de
commit 04f67bf1b8
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ end
function transporter_page_writeEnergy(energyStored, energyMax, energyUnits)
w.setCursorPos(19, 8)
w.setColorNormal()
w.write(w.format_integer(energyStored, 7) .. " / " .. energyMax .. " " .. energyUnits .. " ")
w.write(w.format_integer(energyStored, 8) .. " / " .. energyMax .. " " .. energyUnits .. " ")
end
function transporter_page_writeLockStrength(lockStrength)

View file

@ -166,7 +166,7 @@ end
function transporter_page_writeEnergy(energyStored, energyMax, energyUnits)
w.setCursorPos(19, 8)
w.setColorNormal()
w.write(w.format_integer(energyStored, 7) .. " / " .. energyMax .. " " .. energyUnits .. " ")
w.write(w.format_integer(energyStored, 8) .. " / " .. energyMax .. " " .. energyUnits .. " ")
end
function transporter_page_writeLockStrength(lockStrength)