1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-16 10:09:55 +00:00

Update paintutils.lua

This commit is contained in:
MineRobber___T 2017-07-17 01:16:36 -04:00 committed by GitHub
parent af847818d2
commit f785b0a488

View File

@ -37,14 +37,9 @@ function loadImage( sPath )
if fs.exists( sPath ) then
local tImage = {}
local file = io.open( sPath, "r" )
local sLine = file:read()
local sContent = ""
while sLine do
sContent = sContent .. "\n" .. sLine
sLine = file:read()
end
local sContent = file:readAll()
file:close()
return parseImage( sContent:sub(2) ) -- remove first newline and delegate image parse to parseImage
return parseImage( sContent ) -- delegate image parse to parseImage
end
return nil
end