From 4939e7fd026369f01c1b0819a602ab31331b10b6 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 12 Dec 2024 15:36:46 +0000 Subject: [PATCH] Tweak beds moving check (#3170) checking player movement is too sensitive with 0.001 as the value, changing to 0.05 works a lot better especially when 3rd party mods that change player physics are in use. --- mods/beds/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/beds/functions.lua b/mods/beds/functions.lua index c3e2a2c969..6ce90f2c6a 100644 --- a/mods/beds/functions.lua +++ b/mods/beds/functions.lua @@ -97,7 +97,7 @@ local function lay_down(player, pos, bed_pos, state, skip) end -- Check if player is moving - if vector.length(player:get_velocity()) > 0.001 then + if vector.length(player:get_velocity()) > 0.05 then minetest.chat_send_player(name, S("You have to stop moving before going to bed!")) return false end