mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 14:45:12 +00:00
Velocity check adjusted in mcl_beds
This commit is contained in:
parent
c78270e70b
commit
7d1f8ac314
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- No sleeping while moving. Slightly different behaviour than in MC.
|
-- No sleeping while moving. Slightly different behaviour than in MC.
|
||||||
if vector.length(player:get_player_velocity()) > 0.001 then
|
if vector.length(player:get_player_velocity()) > 0.125 then
|
||||||
minetest.chat_send_player(name, S("You have to stop moving before going to bed!"))
|
minetest.chat_send_player(name, S("You have to stop moving before going to bed!"))
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue