mirror of
https://github.com/LDDestroier/CC/
synced 2025-11-06 10:23:00 +00:00
Fixed transparency check function
If it tried to check an area of a window that fell outside its bounds, it would incorrectly return `true`.
This commit is contained in:
@@ -35,7 +35,7 @@ local lval = {
|
|||||||
elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then
|
elseif (not buffer[3][y][x] or buffer[3][y][x] == "-") and buffer[1][y][x] == " " then
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
return true
|
return buffer[1][y][x] and buffer[2][y][x] and buffer[3][y][x]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user