mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
Turn non-player boat passenger sideways (#3986)
Some low hanging simple boat fixes. Fixes #3259 Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3986 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land> Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
This commit is contained in:
parent
8789411ab7
commit
da911bd4d4
@ -62,8 +62,13 @@ end
|
|||||||
local function set_double_attach(boat)
|
local function set_double_attach(boat)
|
||||||
boat._driver:set_attach(boat.object, "",
|
boat._driver:set_attach(boat.object, "",
|
||||||
{x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0})
|
{x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0})
|
||||||
boat._passenger:set_attach(boat.object, "",
|
if boat._passenger:is_player() then
|
||||||
{x = 0, y = 0.42, z = -2.2}, {x = 0, y = 0, z = 0})
|
boat._passenger:set_attach(boat.object, "",
|
||||||
|
{x = 0, y = 0.42, z = -6.2}, {x = 0, y = 0, z = 0})
|
||||||
|
else
|
||||||
|
boat._passenger:set_attach(boat.object, "",
|
||||||
|
{x = 0, y = 0.42, z = -4.5}, {x = 0, y = 270, z = 0})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
local function set_choat_attach(boat)
|
local function set_choat_attach(boat)
|
||||||
boat._driver:set_attach(boat.object, "",
|
boat._driver:set_attach(boat.object, "",
|
||||||
|
Loading…
Reference in New Issue
Block a user