forked from nalc/homedecor_modpack
fix seating only working once till server restarts
This commit is contained in:
parent
a100d20d4d
commit
335559feb3
|
@ -142,6 +142,7 @@ function lrfurn.stand(clicker)
|
||||||
xcompat.player.player_attached[clicker:get_player_name()] = false
|
xcompat.player.player_attached[clicker:get_player_name()] = false
|
||||||
if physics_cache[clicker:get_player_name()] then
|
if physics_cache[clicker:get_player_name()] then
|
||||||
clicker:set_physics_override(physics_cache[clicker:get_player_name()])
|
clicker:set_physics_override(physics_cache[clicker:get_player_name()])
|
||||||
|
physics_cache[clicker:get_player_name()] = nil
|
||||||
else --in case this is called and the cache is empty
|
else --in case this is called and the cache is empty
|
||||||
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
|
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user