Make movement check more liberal

This commit is contained in:
sfan5 2024-04-28 11:17:47 +02:00
parent 52ce4f7b94
commit 0e4339bceb

View File

@ -29,7 +29,7 @@ if ts_furniture.enable_sitting then
ts_furniture.sit = function(pos, _, player) ts_furniture.sit = function(pos, _, player)
local name = player:get_player_name() local name = player:get_player_name()
if not player_api.player_attached[name] then if not player_api.player_attached[name] then
if vector.length(player:get_player_velocity()) > 0 then if vector.length(player:get_player_velocity()) > 0.5 then
minetest.chat_send_player(player:get_player_name(), 'You can only sit down when you are not moving.') minetest.chat_send_player(player:get_player_name(), 'You can only sit down when you are not moving.')
return return
end end