From 0e4339bcebcf7c3bfd0de57053b882841edd2c20 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 28 Apr 2024 11:17:47 +0200 Subject: [PATCH] Make movement check more liberal --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 0f13304..ae7fb22 100755 --- a/init.lua +++ b/init.lua @@ -29,7 +29,7 @@ if ts_furniture.enable_sitting then ts_furniture.sit = function(pos, _, player) local name = player:get_player_name() 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.') return end