From bc1276b5eb20939ec25757046eb18ddce9820eb9 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sat, 7 Mar 2020 14:00:15 +0100 Subject: [PATCH] Add chat message when sitting is not possible. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 484f178..71bb2f5 100755 --- a/init.lua +++ b/init.lua @@ -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)