Add chat message when sitting is not possible.
This commit is contained in:
parent
7c3d86b807
commit
bc1276b5eb
1
init.lua
1
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user