Add chat message when sitting is not possible.

This commit is contained in:
Thomas--S 2020-03-07 14:00:15 +01:00
parent 7c3d86b807
commit bc1276b5eb

View File

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