fix sit behaviour

master
Alexsandro Percy 2022-07-04 20:56:59 -03:00
parent e2e1be3266
commit 91bc6ced6b
1 changed files with 1 additions and 1 deletions

View File

@ -38,11 +38,11 @@ function demoiselle.attach(self, player)
player:set_eye_offset({x = 0, y = 2, z = 2}, {x = 0, y = 1, z = -30})
end
player_api.player_attached[name] = true
player_api.set_animation(player, "sit")
-- make the driver sit
minetest.after(1, function()
player = minetest.get_player_by_name(name)
if player then
player_api.set_animation(player, "sit")
airutils.sit(player)
end
end)