mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-02 20:10:04 -04:00
Merge f086d1324c
into ffcb3d6356
This commit is contained in:
commit
a926e5518f
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ function boat.on_rightclick(self, clicker)
|
|||
clicker:set_detach()
|
||||
default.player_attached[name] = false
|
||||
default.player_set_animation(clicker, "stand" , 30)
|
||||
local pos = clicker:getpos()
|
||||
pos = {x=pos.x+0, y=pos.y+0.2, z=pos.z+0}
|
||||
minetest.after(0.1, function()
|
||||
clicker:setpos(pos)
|
||||
end)
|
||||
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})
|
||||
|
|
Loading…
Add table
Reference in a new issue