From f7d040e6aa2be0b4fcb10f79b4706ca621d506ae Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Tue, 15 Oct 2019 03:32:59 -0400 Subject: [PATCH] Update pain.lua --- pain.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pain.lua b/pain.lua index 7d341e5..5aa393b 100644 --- a/pain.lua +++ b/pain.lua @@ -3344,7 +3344,7 @@ local getInput = function() --gotta catch them all local mevt repeat mevt = {os.pullEvent()} - until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[2] == 1 and mevt[4] <= scr_y) + until (mevt[1] == "key" and mevt[2] == keys.x) or (mevt[2] == 1 and (mevt[4] or math.huge) <= scr_y) if not (mevt[1] == "key" and mevt[2] == keys.x) then local x, y = mevt[3]+paint.scrollX, mevt[4]+paint.scrollY if plc.renderBlittle then