Fixed LUA script following integration
This commit is contained in:
parent
9419d630d6
commit
b860494c5c
3 changed files with 8 additions and 8 deletions
|
@ -414,8 +414,8 @@ end
|
|||
function data_save()
|
||||
local file = fs.open("shipdata.txt", "w")
|
||||
if file ~= nil then
|
||||
file:writeLine(textutils.serialize(data))
|
||||
file:close()
|
||||
file.writeLine(textutils.serialize(data))
|
||||
file.close()
|
||||
else
|
||||
ShowWarning("No file system")
|
||||
end
|
||||
|
@ -719,7 +719,7 @@ function reactor_pulse(output)
|
|||
end
|
||||
if energy[3] ~= nil then
|
||||
SetCursorPos(12, 8)
|
||||
Write(energy[3] .. " RF/t")
|
||||
Write(energy[3] .. " RF/t ")
|
||||
end
|
||||
|
||||
if #reactorlasers ~= 0 then
|
||||
|
|
|
@ -417,8 +417,8 @@ end
|
|||
function data_save()
|
||||
local file = fs.open("shipdata.txt", "w")
|
||||
if file ~= nil then
|
||||
file:writeLine(textutils.serialize(data))
|
||||
file:close()
|
||||
file.writeLine(textutils.serialize(data))
|
||||
file.close()
|
||||
else
|
||||
ShowWarning("No file system")
|
||||
end
|
||||
|
@ -428,8 +428,8 @@ function data_read()
|
|||
data = { }
|
||||
if fs.exists("shipdata.txt") then
|
||||
local file = fs.open("shipdata.txt", "r")
|
||||
data = textutils.unserialize(file:readAll())
|
||||
file:close()
|
||||
data = textutils.unserialize(file.readAll())
|
||||
file.close()
|
||||
end
|
||||
if data.core_summon == nil then data.core_summon = false; end
|
||||
end
|
||||
|
|
|
@ -673,7 +673,7 @@ function reactor_pulse(output)
|
|||
end
|
||||
if energy[3] ~= nil then
|
||||
SetCursorPos(12, 8)
|
||||
Write(energy[3] .. " RF/t")
|
||||
Write(energy[3] .. " RF/t ")
|
||||
end
|
||||
|
||||
elseif reactor_pulseStep == 8 then
|
||||
|
|
Loading…
Add table
Reference in a new issue