From ba85e514bfe4d3063281bf70fdf483eac64a7fd9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 23 Jul 2024 10:32:11 +0200 Subject: [PATCH] No longer set eye offset when sitting on chair MTG is now doing the eye offset itself --- handlers/animations.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/handlers/animations.lua b/handlers/animations.lua index 4d9c1f0..0f06374 100644 --- a/handlers/animations.lua +++ b/handlers/animations.lua @@ -22,7 +22,6 @@ function xdecor.sit(pos, node, clicker, pointed_thing) if player_api.player_attached[player_name] then clicker:set_pos(pos) - clicker:set_eye_offset(vector.new(), vector.new()) if mod_playerphysics then playerphysics.remove_physics_factor(clicker, "speed", "xdecor:sit_speed") playerphysics.remove_physics_factor(clicker, "jump", "xdecor:sit_jump") @@ -35,7 +34,6 @@ function xdecor.sit(pos, node, clicker, pointed_thing) elseif not player_api.player_attached[player_name] and node.param2 <= 3 and not ctrl.sneak and vector.equals(vel, vector.new()) then - clicker:set_eye_offset({x = 0, y = -7, z = 2}, vector.new()) if mod_playerphysics then playerphysics.add_physics_factor(clicker, "speed", "xdecor:sit_speed", 0) playerphysics.add_physics_factor(clicker, "jump", "xdecor:sit_jump", 0)