From c8260f9482202e3999be4339924309fac79296c8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 14 Oct 2020 21:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E4=BB=A3=E7=A0=81=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E6=8A=93bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/player.lua b/parts/player.lua index 7d02f7a6..9da4d7ef 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -1597,7 +1597,8 @@ end function player.solid(P,x,y) if x<1 or x>10 or y<1 then return true end if y>#P.field then return false end - return P.field[y][x]>0 + return P.field[y] + [x]>0--to catch bug (nil[*]) end function player.ifoverlap(P,bk,x,y) local C=#bk[1]