1
0
鏡像自 https://github.com/mt-mods/homedecor_modpack.git 已同步 2025-10-31 07:45:29 +01:00

fix seating only working once till server restarts

此提交包含在:
wsor4035
2024-09-11 20:18:38 -04:00
父節點 a100d20d4d
當前提交 335559feb3

查看文件

@@ -142,6 +142,7 @@ function lrfurn.stand(clicker)
xcompat.player.player_attached[clicker:get_player_name()] = false
if physics_cache[clicker:get_player_name()] then
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
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
end