This commit is contained in:
kilbith2 2015-02-28 21:34:22 +00:00
commit f27672fce4

View file

@ -53,6 +53,9 @@ function boat.on_rightclick(self, clicker)
clicker:set_detach()
default.player_attached[name] = false
default.player_set_animation(clicker, "stand" , 30)
clicker:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
clicker:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
clicker:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
elseif not self.driver then
self.driver = clicker
clicker:set_attach(self.object, "", {x = 0, y = 11, z = -3}, {x = 0, y = 0, z = 0})
@ -60,6 +63,7 @@ function boat.on_rightclick(self, clicker)
minetest.after(0.2, function()
default.player_set_animation(clicker, "sit" , 30)
end)
clicker:set_eye_offset({x=0,y=-4.5,z=0},{x=0,y=-4.5,z=0})
self.object:setyaw(clicker:get_look_yaw() - math.pi / 2)
end
end