mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-29 16:00:16 +01:00
Sled needs to be under the player.
Not on top like a hat xD
This commit is contained in:
parent
a029130d61
commit
09a422a0e7
@ -90,7 +90,7 @@ local function join_sled(self, player)
|
|||||||
default.player_attached[name] = true
|
default.player_attached[name] = true
|
||||||
default.player_set_animation(player, "sit" , 30)
|
default.player_set_animation(player, "sit" , 30)
|
||||||
self.driver = name
|
self.driver = name
|
||||||
self.object:set_attach(player, "", vector.zero, vector.zero)
|
self.object:set_attach(player, "", {x=0,y=-9,z=0}, {x=0,y=90,z=0})
|
||||||
self.object:setyaw(player:get_look_yaw())-- - math.pi/2)
|
self.object:setyaw(player:get_look_yaw())-- - math.pi/2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user