player placing position changed

This commit is contained in:
Joachim Stolberg 2018-02-24 19:20:34 +01:00
parent 0bf3fb08c9
commit d877b36488
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)