1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 14:41:14 +02:00

fix arg 2

This commit is contained in:
2020-08-25 00:11:25 +02:00
parent 70a21731b9
commit fbc9d6c0ec

View File

@@ -8,7 +8,7 @@ local args,opts = shell.parse(...)
if(fs.exists(args[1]) and not fs.isDirectory(args[1])) then
local bk = gpu.getBackground()
gpu.setBackground(tonumber(args[2],16) or bk)
gpu.setBackground(tonumber(args[2]or bk,16))
term.clear()
libgui.drawImg(libgui.openPAM(args[1]),1,1)
os.sleep(1)