fix swap bagline (#970)

* fix bagline for swap mode

* remove bagline when a block leaves nextqueue
This commit is contained in:
Imple Lee
2023-09-14 16:47:39 +08:00
committed by GitHub
parent c695596285
commit cf147be119
2 changed files with 4 additions and 1 deletions

View File

@@ -570,7 +570,7 @@ local function _drawNext(P,repMode)
if ENV.bagLine then
gc_setColor(.8,.8,.8,.8)
for i=1,ENV.nextCount+1 do
if queue[i] and queue[i].bagLine>0 then
if queue[i] and queue[i].bagLine and queue[i].bagLine>0 then
gc_rectangle('fill',1,72*(i-1)+3,98,2)
end
end