diff --git a/elevator.lua b/elevator.lua index 52685c3..dd14eef 100644 --- a/elevator.lua +++ b/elevator.lua @@ -275,7 +275,9 @@ local function on_arrival_floor(tDeparture, tArrival, player, snd) door_command(tArrival.pos, tArrival.facedir, "close", false) tDeparture.busy = false if player ~= nil then - player:setpos(tArrival.pos) + local pos = table.copy(tArrival.pos) + pos.y = pos.y - 0.5 + player:setpos(pos) end minetest.sound_stop(snd) minetest.after(1.0, on_open_door, tArrival) diff --git a/seat.lua b/seat.lua index 71a61ec..c714030 100644 --- a/seat.lua +++ b/seat.lua @@ -74,7 +74,7 @@ local function on_arrival(tDeparture, tArrival, player, snd) max_hear_distance = 2 }) - minetest.after(6.0, on_open_door, tArrival) + minetest.after(4.0, on_open_door, tArrival) end local function on_travel(tDeparture, tArrival, player, atime)