修复hold代码调整后O变形不保留名字和颜色

This commit is contained in:
MrZ626
2021-03-13 15:12:30 +08:00
parent 1d8e2094e0
commit 835690c609

View File

@@ -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)