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
|
end
|
||||||
|
|
||||||
function physics.apply(player)
|
function physics.apply(player)
|
||||||
local name = player:get_player_name()
|
if player ~= nil then
|
||||||
if physics.player_frozen[name] ~= true then
|
local name = player:get_player_name()
|
||||||
player:set_physics_override(physics.player_physics[name])
|
if physics.player_frozen[name] ~= true then
|
||||||
|
player:set_physics_override(physics.player_physics[name])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user