mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-09-27 06:38:20 +00:00
Update paintutils.lua
This commit is contained in:
parent
af847818d2
commit
f785b0a488
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user