I have nothing in my code that uses the window-API, but I'm still getting the error above in the title.
-- [[ Copyright (c) Beatsleigher 2014 ]] --
-- [[ Disable Termination ]] --
os.pullEvent = os.pullEventRaw
-- [[ Variables ]] --
VERSION = "1.0"
VER = VERSION
TITLE = "TURTLESERV SErVER BOOT-UP MANAGER"
xLen, yLen = term.getSize()
-- [[ Printing Methods ]] --
local function clear()
term.clear()
term.setCursorPos(1,1)
end
local function printCentre(height, data)
xPos = xLen / 2 - string.len(data) / 2
term.setCursorPos(xPos, height)
print(data)
end
local function printRight(height, data)
xPos = xLen - string.len(data)
term.setCursorPos(xPos, height)
print(data)
end
local function printHeader()
clear()
print(TITLE)
printRight(1, VER)
end
-- [[ Main Method ]] --
local function main()
printHeader()
end
-- [[ Program Entry Point ]] --
main()
That's all the code that I have at the moment, but I'm getting that weird error. I've been using this code for at least two years, now - It's never failed me.
Is this just my being dumb or is this a bug in CC?
How can I fix this?
Thanks in advance.