diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/paintutils.lua b/src/main/resources/assets/computercraft/lua/rom/apis/paintutils.lua index 26e91cd0d..c951a88c0 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/paintutils.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/paintutils.lua @@ -35,7 +35,7 @@ function loadImage( sPath ) if fs.exists( sPath ) then local file = io.open( sPath, "r" ) - local sContent = file:readAll() + local sContent = file:read("*a") file:close() return parseImage( sContent ) -- delegate image parse to parseImage end