Update wpath.lua

This commit is contained in:
LDDestroier 2019-01-20 14:41:04 -05:00 committed by GitHub
parent 8efa77adcd
commit 8f0c92f99a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 41 deletions

View File

@ -13,7 +13,7 @@ local rbow,bbow
local sizePath = "size.lua"
if not peripheral.find("monitor") then
return
error("A monitor is needed to use WPath.")
end
local reset = function()
@ -44,7 +44,9 @@ end
local render = function(shift,mon)
local line
if not mon.getSize then return end
if not mon.getSize then
return
end
local scr_x,scr_y = mon.getSize()
scr_y = scr_y + (scr_y % 2)
bow = mon.isColor() and rbow or bbow
@ -58,7 +60,7 @@ local render = function(shift,mon)
end
end
local DOITNOW = function(YOUFUCKINGTWAT)
local DOITNOW = function(KILLME, KILLMENOW)
local shift = 0
while true do
shift = (shift + 1)