- Fix remove method

This commit is contained in:
ParticleG
2022-12-19 20:28:00 +08:00
parent 59b412899d
commit 2b16a20032
2 changed files with 8 additions and 2 deletions

View File

@@ -877,7 +877,7 @@ do-- function freshPlayerPosition(sudden)
end
else
if #L<=36 then
for i=2,#L do
for i=1,#L do
L[i].miniMode=false
L[i].draw=require"parts.player.draw".norm
end

View File

@@ -2654,7 +2654,13 @@ local function update_dead(P,dt)
_updateMisc(P,dt)
end
function Player:_die()
do local p=TABLE.find(PLY_ALIVE,self) if p then PLY_ALIVE[p]=rem(PLY_ALIVE) end end
do
local p=TABLE.find(PLY_ALIVE,self)
if p then
PLY_ALIVE[p]=PLY_ALIVE[#PLY_ALIVE]
rem(PLY_ALIVE)
end
end
self.alive=false
self.timing=false
self.control=false