Fix rare crash on player disconnect
This commit is contained in:
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…
x
Reference in New Issue
Block a user