From 835690c6091de7a21a022f38f5868ed40c7265a7 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 13 Mar 2021 15:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhold=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=8EO=E5=8F=98=E5=BD=A2=E4=B8=8D?= =?UTF-8?q?=E4=BF=9D=E7=95=99=E5=90=8D=E5=AD=97=E5=92=8C=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 051618c4..18a84813 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -657,7 +657,10 @@ function Player.hold(P,ifpre) P.spinLast=false P.spinSeq=0 - ins(P.holdQueue,P:getBlock(C.id)) + local hb=P:getBlock(C.id) + hb.name=C.name + hb.color=C.color + ins(P.holdQueue,hb) P.cur=rem(P.holdQueue,1) P.curX,P.curY=x,y else @@ -676,7 +679,10 @@ function Player.hold(P,ifpre) P.spinSeq=0 if C then - ins(P.holdQueue,P:getBlock(C.id)) + local hb=P:getBlock(C.id) + hb.color=C.color + hb.name=C.name + ins(P.holdQueue,hb) end P.cur=rem(P.holdQueue,1)