Make movement check more liberal
This commit is contained in:
parent
52ce4f7b94
commit
0e4339bceb
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user