From ba056343bdb6af5ef6de14b3006e3dedd2d8ae6f Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sun, 12 Jan 2020 01:42:47 -0500 Subject: [PATCH] Fixed transparency check function If it tried to check an area of a window that fell outside its bounds, it would incorrectly return `true`. --- windont/windont.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windont/windont.lua b/windont/windont.lua index 468ab99..dad1d8a 100644 --- a/windont/windont.lua +++ b/windont/windont.lua @@ -35,7 +35,7 @@ local lval = { elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then return false else - return true + return buffer[1][y][x] and buffer[2][y][x] and buffer[3][y][x] end end end