1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-16 20:50:20 +02:00

Remove eye offsetting hacks

This commit is contained in:
Lars Mueller
2022-01-18 20:05:08 +01:00
parent 6623dec567
commit a19ade52bc
2 changed files with 0 additions and 4 deletions

View File

@ -19,14 +19,12 @@ function carts:manage_attachment(player, obj)
if status then
player:set_attach(obj, "", {x=0, y=-4.5, z=0}, {x=0, y=0, z=0})
player:set_eye_offset({x=0, y=-4, z=0},{x=0, y=-4, z=0})
-- player_api does not update the animation
-- when the player is attached, reset to default animation
player_api.set_animation(player, "stand")
else
player:set_detach()
player:set_eye_offset({x=0, y=0, z=0},{x=0, y=0, z=0})
end
end