player placing position changed
This commit is contained in:
parent
0bf3fb08c9
commit
d877b36488
@ -275,7 +275,9 @@ local function on_arrival_floor(tDeparture, tArrival, player, snd)
|
|||||||
door_command(tArrival.pos, tArrival.facedir, "close", false)
|
door_command(tArrival.pos, tArrival.facedir, "close", false)
|
||||||
tDeparture.busy = false
|
tDeparture.busy = false
|
||||||
if player ~= nil then
|
if player ~= nil then
|
||||||
player:setpos(tArrival.pos)
|
local pos = table.copy(tArrival.pos)
|
||||||
|
pos.y = pos.y - 0.5
|
||||||
|
player:setpos(pos)
|
||||||
end
|
end
|
||||||
minetest.sound_stop(snd)
|
minetest.sound_stop(snd)
|
||||||
minetest.after(1.0, on_open_door, tArrival)
|
minetest.after(1.0, on_open_door, tArrival)
|
||||||
|
2
seat.lua
2
seat.lua
@ -74,7 +74,7 @@ local function on_arrival(tDeparture, tArrival, player, snd)
|
|||||||
max_hear_distance = 2
|
max_hear_distance = 2
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.after(6.0, on_open_door, tArrival)
|
minetest.after(4.0, on_open_door, tArrival)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_travel(tDeparture, tArrival, player, atime)
|
local function on_travel(tDeparture, tArrival, player, atime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user