修复玩家死亡掉落动画任务能跨局把新开的局里的玩家移除 close #918

This commit is contained in:
MrZ_26
2023-07-17 04:24:49 +08:00
parent f41a68de0d
commit f7cdae8677

View File

@@ -613,7 +613,10 @@ do-- function Player:dropPosition(x,y,size)
vy=vy+.0626
self:setPosition(x,y,size)
if y>2600 then
table.remove(PLAYERS,TABLE.find(PLAYERS,self))
local index=TABLE.find(PLAYERS,self)
if index then
table.remove(PLAYERS,index)
end
return true
end
end