Fixed LUA script following integration

This commit is contained in:
LemADEC 2016-03-21 10:50:08 +01:00
parent 9419d630d6
commit b860494c5c
3 changed files with 8 additions and 8 deletions

View file

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

View file

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

View file

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