espelhamento de
https://github.com/mt-mods/homedecor_modpack.git
sincronizado 2025-09-18 14:10:41 +02:00
fix seating only working once till server restarts
Esse commit está contido em:
@@ -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
|
||||||
|
Referência em uma nova issue
Block a user