Fix rare crash on player disconnect
parent
9cb663d488
commit
0b674b7bca
|
@ -16,9 +16,11 @@ function physics.adjust_physics(player,_physics)
|
|||
end
|
||||
|
||||
function physics.apply(player)
|
||||
local name = player:get_player_name()
|
||||
if physics.player_frozen[name] ~= true then
|
||||
player:set_physics_override(physics.player_physics[name])
|
||||
if player ~= nil then
|
||||
local name = player:get_player_name()
|
||||
if physics.player_frozen[name] ~= true then
|
||||
player:set_physics_override(physics.player_physics[name])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue