From f02f927f3873b9e199efb72e9e7fe4cc38b740ae Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:55:03 -0400 Subject: [PATCH] improve things --- homedecor_seating/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homedecor_seating/init.lua b/homedecor_seating/init.lua index 7127e362..11cfc048 100644 --- a/homedecor_seating/init.lua +++ b/homedecor_seating/init.lua @@ -85,7 +85,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats) return itemstack end - if xcompat.player.player_attached[clicker:get_player_name()] then + if physics_cache[clicker:get_player_name()] then lrfurn.stand(clicker) return itemstack end @@ -142,7 +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()]) - else + else --in case this is called and the cache is empty clicker:set_physics_override({speed = 1, jump = 1, gravity = 1}) end end